-
Notifications
You must be signed in to change notification settings - Fork 7
/
pyproject.toml
75 lines (67 loc) · 1.46 KB
/
pyproject.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
[tool.poetry]
name = "opensearch-sdk-py"
version = "0.1.0"
description = "OpenSearch Python SDK."
authors = ["Daniel Doubrovkine <[email protected]>"]
license = "Apache 2.0"
readme = "README.md"
[tool.poetry.dependencies]
python = "^3.9"
aiohttp = "*"
pytest = "*"
isort = "*"
flake8 = "^7.0.0"
black = "*"
autoflake = "*"
protobuf = "^5.0.0"
types-protobuf = "*"
2to3 = "*"
sortedcollections = "*"
mypy = "*"
licenseheaders = "*"
pre-commit = "*"
coverage = "*"
pytest-cov = "*"
mock = "^5.1.0"
types-mock = "^5.1.0.2"
httpx = "*"
poetry-exec-plugin = "^0.3.6"
[tool.isort]
profile = "black"
known_first_party = "poetry"
skip = ["protobuf"]
line_length = 240
[tool.black]
line-length = 240
target-version = ['py37']
extend-exclude = "protobuf"
[tool.autoflake]
exclude = ["protobuf"]
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.pytest.ini_options]
pythonpath = ["src", "tests"]
log_cli = true
log_cli_level = "INFO"
testpaths = ["tests"]
[tool.mypy]
python_version = 3.9
disallow_untyped_defs = true
warn_return_any = true
exclude = ['src/opensearch_sdk_py/protobuf']
ignore_missing_imports = true
[tool.poetry-exec-plugin.commands]
auto = """
isort . ;
black . ;
autoflake -r --in-place --remove-unused-variables --remove-all-unused-imports . ;
"""
integration = """
poetry run pytest samples/hello/tests
"""
coverage = """
poetry run coverage run --source=src -m pytest
poetry run coverage report
poetry run coverage html
"""