-
Notifications
You must be signed in to change notification settings - Fork 1
/
pyproject.toml
111 lines (96 loc) · 2.25 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
[project]
name = "autopytest"
version = "0.0.11"
description = "Autotest python code"
authors = [
{ name = "David Rice", email = "[email protected]" },
]
license = { file = "LICENSE" }
readme = "README.md"
classifiers = [
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
]
requires-python = ">=3.10"
dependencies = [
"watchdog==3.0.0",
"packaging==24.0",
"toml==0.10.2; python_version < '3.11'",
"typing-extensions==4.8.0; python_version < '3.11'",
]
[project.optional-dependencies]
dev = [
"black==24.4.0",
"codespell==2.2.6",
"refurb==2.0.0",
"ruff==0.3.7",
"tox==4.14.2",
"types-toml==0.10.8.20240310",
]
[project.urls]
"Homepage" = "https://github.com/davidjrice/autopytest"
"Bug Tracker" = "https://github.com/davidjrice/autopytest/issues"
[project.scripts]
autopytest = "autopytest.cli:main"
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.autopytest]
source_directories = ["autopytest"]
test_directory = "tests"
include_source_dir_in_test_path = false
[tool.coverage.run]
branch = true
concurrency = ["thread"]
data_file = ".coverage/.data"
source = ["autopytest"]
[tool.coverage.html]
directory = ".coverage/html"
[tool.coverage.lcov]
output = ".coverage/lcov.info"
[tool.flake8]
ignore = [
"Q000",
"D101",
"D100",
"D102",
"D103",
"D104",
"D107",
]
max-line-length = 88
[tool.mypy]
exclude = [
".venv",
"fixtures",
]
pretty = true
cache_dir = ".cache/mypy"
[tool.pytest.ini_options]
addopts = "--ignore=fixtures --cov=autopytest --cov-report=term --cov-report=html --cov-report=lcov"
cache_dir = ".cache/pytest"
testpaths = [
"tests"
]
filterwarnings = "ignore:cannot collect test class 'TestFileStrategy'"
[tool.ruff]
cache-dir = ".cache/ruff"
fix = true
line-length = 120
select = ["ALL"]
ignore = [
"ANN101", # missing-type-self
"ANN102", # missing-type-cls
"D", # pydocstyle
"G004", # logging-f-string
"S101", # use-of-assert-detected
"PT019", # pytest-fixture-param-without-value
]
[tool.ruff.isort]
combine-as-imports = true
force-wrap-aliases = true
known-first-party = ["autopytest", "tests"]
[tool.ruff.mccabe]
# Flag errors (`C901`) whenever the complexity level exceeds 5.
max-complexity = 5