-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathpyproject.toml
132 lines (118 loc) · 3.06 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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
[tool.poetry]
name = "connect-eaas-core"
version = "0.0.0"
description = "Connect Eaas Core"
authors = ["CloudBlue LLC"]
license = "Apache-2.0"
packages = [
{ include = "connect" },
]
readme = "./README.md"
homepage = "https://connect.cloudblue.com"
repository = "https://github.com/cloudblue/connect-eaas-core"
classifiers = [
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
"Operating System :: OS Independent",
"Intended Audience :: Developers",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Utilities",
"Topic :: Software Development :: Libraries",
]
[tool.poetry.dependencies]
python = ">=3.9,<4"
connect-openapi-client = ">=25.20"
pydantic = "^1.10"
fastapi = "^0.114.0"
fastapi-utils = "^0.7.0"
logzio-python-handler = ">=3.1.1,<4.2"
anvil-uplink = "^0.5.1"
toml = "^0.10.2"
PyYAML = "^6.0"
typing-extensions = "<5"
[tool.poetry.group.test.dependencies]
pytest = ">=6.1.2,<8"
pytest-cov = ">=2.10.1,<5"
pytest-mock = "^3.14.0"
coverage = {extras = ["toml"], version = ">=5.3,<7"}
flake8 = ">=3.8,<8"
flake8-bugbear = ">=20,<23"
flake8-cognitive-complexity = "^0.1"
flake8-commas = "^4.0"
flake8-future-import = "~0.4"
flake8-broken-line = ">=0.3,<1.1"
flake8-pyproject = "^1.2.2"
pytest-asyncio = "^0.20.1"
mock = { version = "^4.0.3", markers = "python_version < '3.8'" }
fs = "^2.4.12"
responses = ">=0.14.0,<1"
pytest-httpx = ">=0.20"
Faker = "^14.2.0"
flake8-isort = "^6.1.0"
django-rql = "^4.4.0"
[tool.poetry.group.docs.dependencies]
mkdocs = "^1.4.2"
mkdocs-material = "^9.1.4"
jinja2 = "3.1.0"
mkdocs-glightbox = "^0.3.0"
mkdocs-macros-plugin = "^0.7.0"
mkdocstrings = "^0.20.0"
mkdocstrings-python = "^0.8.3"
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.poetry.plugins.pytest11]
"pytest_eaas_core" = "connect.eaas.core.testing.fixtures"
[tool.pytest.ini_options]
testpaths = ["tests"]
log_cli = true
addopts = "--cov=connect.eaas.core --cov-report=term-missing:skip-covered --cov-report=html --cov-report=xml"
asyncio_mode = "strict"
[tool.coverage.run]
branch = true
[tool.coverage.report]
omit = [
"*/migrations/*",
"*/config/*",
"*/settings/*",
"*/manage.py",
"*/wsgi.py",
"*/urls.py",
"*__init__.py",
]
exclude_lines = [
"pragma: no cover",
"def __str__",
"def __repr__",
"raise NotImplementedError",
"if __name__ == .__main__.:",
]
[tool.flake8]
exclude = [
".idea",
".vscode",
".git",
"pg_data",
"venv",
"*/settings/*.py",
"*/migrations/*.py"
]
show_source = true
max_line_length = 100
max_cognitive_complexity = 15
ignore = ["FI1", "W503", "B008"]
[tool.isort]
src_paths = "*"
sections = ["FUTURE", "STDLIB", "THIRDPARTY", "FIRSTPARTY", "LOCALFOLDER"]
known_first_party = ["connect"]
group_by_package = true
multi_line_output = 3
force_grid_wrap = 4
combine_as_imports = true
use_parentheses = true
include_trailing_comma = true
line_length = 100
lines_after_imports = 2