-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
105 lines (92 loc) · 2.44 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
[tool.poetry]
name = "connect-extension-utils"
version = "0.1.0"
description = "This repository extend EaaS's out-of-box functionality providing a set of common utilities that can be reused between different extensions."
authors = ["Imgram Migro"]
license = "Apache Software License 2.0"
packages = [
{ include = "connect_extension_utils" }
]
readme = "./README.md"
repository = "https://github.com/cloudblue/connect-extension-utils"
[tool.poetry.dependencies]
python = "<4,>=3.9"
sqlalchemy = "^1.3.12"
pyjwt = "^2.8.0"
connect-eaas-core = ">=35.1"
fastapi-pagination = "<=0.12.17"
[tool.poetry.dev-dependencies]
pytest = ">=6.1.2,<8"
pytest-cov = ">=2.10.1,<5"
pytest-mock = "^3.3.1"
mock = { version = "^4.0.3", markers = "python_version < '3.8'" }
coverage = {extras = ["toml"], version = ">=5.3,<7"}
flake8 = ">=3.8,<6"
flake8-black = "0.*"
flake8-bugbear = ">=20,<23"
flake8-cognitive-complexity = "^0.1"
flake8-commas = "~2.1"
flake8-future-import = "~0.4"
flake8-isort = "^6.0"
flake8-broken-line = ">=0.3,<0.7"
flake8-pyproject = "^1.2.3"
isort = "^5.10"
pytest-factoryboy = "^2.6.0"
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.poetry.plugins.pytest11]
"pytest_connect_extension_utils" = "connect_extension_utils.testing.fixtures"
[tool.pytest.ini_options]
testpaths = ["tests"]
addopts = "--cov=connect_extension_utils --cov-report=term-missing:skip-covered --cov-report=html --cov-report=xml"
[tool.coverage.run]
branch = true
[tool.coverage.report]
omit = [
"*/migrations/*",
"*/config/*",
"*/settings/*",
"*/manage.py",
"*/wsgi.py",
"*/urls.py",
]
exclude_lines = [
"pragma: no cover",
"def __str__",
"def __repr__",
"raise NotImplementedError",
"if __name__ == .__main__.:",
"from",
"import",
"@pytest"
]
[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", "I100", "I201"]
[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
[tool.black]
line_length = 100
skip-string-normalization = true