-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpyproject.toml
114 lines (101 loc) · 2.97 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
[build-system]
requires = ["packaging>=22"]
backend-path = ["src"]
build-backend = "simple_build.backend"
[project]
name = "simple_build"
dynamic = ["version", "description", "authors"]
license = { file = "LICENSE" }
readme = "README.md"
urls.Code = "https://github.com/chrisjsewell/simple-build"
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
]
requires-python = ">=3.11"
dependencies = ["packaging>=22"]
[tool.ruff.lint]
extend-select = [
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"FURB",# refurb (modernising code)
"I", # isort
"ICN", # flake8-import-conventions
"ISC", # flake8-implicit-str-concat
"N", # pep8-naming
"PERF",# perflint (performance anti-patterns)
"PGH", # pygrep-hooks
"PIE", # flake8-pie
"PL", # pylint
"PTH", # flake8-use-pathlib
"RUF", # Ruff-specific rules
"SIM", # flake8-simplify
"UP", # pyupgrade
"T20", # flake8-print
]
extend-ignore = [
"ISC001", # implicit-str-concat
]
[tool.ruff.lint.isort]
split-on-trailing-comma = false
force-sort-within-sections = true
[tool.mypy]
exclude = [".tests/"]
show_error_codes = true
warn_unused_ignores = true
warn_redundant_casts = true
strict = true
# disallow dynamic typing
disallow_any_unimported = true
disallow_any_expr = false
# disallow_any_decorated = true
disallow_any_explicit = true
disallow_any_generics = true
disallow_subclassing_any = true
# dissallow untyped definitions and calls
disallow_untyped_calls = true
disallow_untyped_defs = true
disallow_incomplete_defs = true
disallow_untyped_decorators = true
[tool.tox]
requires = ["tox>=4.19"]
env_list = ["3.11"]
[tool.tox.env_run_base]
description = "Run tests in editable mode under Python {base_python}"
labels = ["all", "editable"]
package = "editable"
deps = ["pytest", "syrupy"]
commands = [["pytest", { replace = "posargs", default=["tests"], extend = true }]]
[tool.tox.env.wheel-py311]
description = "Run tests in wheel mode under Python {base_python}"
labels = ["all", "wheel"]
package = "wheel"
[tool.tox.env.wheel-py312]
description = "Run tests in wheel mode under Python {base_python}"
labels = ["all", "wheel"]
package = "wheel"
[tool.tox.env.wheel-py313]
description = "Run tests in wheel mode under Python {base_python}"
labels = ["all", "wheel"]
package = "wheel"
[tool.tox.env.sdist-py311]
description = "Run tests in sdist mode under Python {base_python}"
labels = ["all", "sdist"]
package = "sdist"
[tool.tox.env.sdist-py312]
description = "Run tests in sdist mode under Python {base_python}"
labels = ["all", "sdist"]
package = "sdist"
[tool.tox.env.sdist-py313]
description = "Run tests in sdist mode under Python {base_python}"
labels = ["all", "sdist"]
package = "sdist"
[tool.tox.env.mypy]
description = "Run mypy"
labels = ["all"]
basepython = ["python3.11"]
deps = ["mypy"]
commands = [["mypy", "src"]]