-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathpyproject.toml
101 lines (87 loc) · 1.79 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
[project]
name = "qpc"
version = "1.11.0"
license = {file = "LICENSE"}
requires-python = ">=3.12,<3.14"
dynamic = ["scripts"]
[tool.poetry]
name = "qpc"
version = "1.11.0"
description = ""
classifiers=[
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
]
authors = ["QPC Team <[email protected]>"]
exclude = [
"**/test_*.py",
"**/*_tests.py",
"**/tests_*.py",
]
[tool.poetry.scripts]
qpc = 'qpc.__main__:main'
[tool.poetry.dependencies]
python = ">=3.12,<3.14"
requests = ">=2.28.1"
cryptography = ">=37.0.4"
setuptools = "^70.0.0"
faker = "^20.0.3"
[tool.poetry.group.dev.dependencies]
coverage = ">=6.4.2"
pytest = ">=7.1.2 <8.0.0"
pytest-cov = ">=3.0.0"
pytest-lazy-fixture = ">=0.6.3"
requests-mock = ">=1.9.3"
pytest-mock = "^3.8.2"
rstcheck = "^6.1.1"
ruff = "^0"
pip-tools = "^7.1.0"
pybuild-deps = "^0.1.1"
[tool.poetry.group.build.dependencies]
sphinx = "^7.2.6"
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.ruff]
lint.select = [
"C90", # mccabe complexity
"D", # pydocstyle
"E", # pycodestyle
"F", # pyflakes
"I", # isort
"Q", # flake8-quotes
"W", # pycodestyle
"PL", # Pylint
"BLE", # flake8-blind-except
"PTH", # flake8-use-pathlib
]
lint.ignore = [
"D107",
"D203",
"D403",
"PLC1901",
"PLR2004",
]
src = ["qpc"]
target-version = "py311"
[tool.ruff.lint.per-file-ignores]
"**/commands.py" = ["F401"]
"**/test_*.py" = [
"PLR0913"
]
"**/tests_*.py" = [
"PLR0913"
]
[tool.ruff.lint.isort]
known-first-party = ["qpc"]
[tool.ruff.lint.mccabe]
max-complexity = 10
[tool.ruff.lint.pydocstyle]
convention = "pep257"
[tool.pytest.ini_options]
pythonpath = "qpc"
python_files = [
"tests.py",
"test_*.py",
"*_tests.py",
"tests_*.py",
]