-
-
Notifications
You must be signed in to change notification settings - Fork 151
/
pyproject.toml
161 lines (152 loc) · 4.12 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
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
[build-system]
build-backend = "hatchling.build"
requires = [
"hatchling",
]
[project]
name = "nox"
version = "2024.10.09"
description = "Flexible test automation."
readme = "README.md"
keywords = [
"automation",
"testing",
"tox",
]
license = { text = "Apache-2.0" }
authors = [
]
requires-python = ">=3.8"
classifiers = [
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
"Intended Audience :: Developers",
"License :: OSI Approved :: Apache Software License",
"Operating System :: MacOS",
"Operating System :: Microsoft :: Windows",
"Operating System :: POSIX",
"Operating System :: Unix",
"Programming Language :: Python",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Software Development :: Testing",
]
dependencies = [
"argcomplete>=1.9.4,<4",
"attrs>=23.1",
"colorlog>=2.6.1,<7",
"dependency-groups>=1.1",
"packaging>=20.9",
"tomli>=1; python_version<'3.11'",
"virtualenv>=20.14.1",
]
optional-dependencies.tox_to_nox = [
"importlib-resources; python_version<'3.9'",
"jinja2",
"tox",
]
optional-dependencies.uv = [
"uv>=0.1.6",
]
urls.bug-tracker = "https://github.com/wntrblm/nox/issues"
urls.documentation = "https://nox.thea.codes"
urls.homepage = "https://github.com/wntrblm/nox"
urls.repository = "https://github.com/wntrblm/nox"
scripts.nox = "nox.__main__:main"
scripts.tox-to-nox = "nox.tox_to_nox:main"
[dependency-groups]
dev = [
{ include-group = "docs" },
{ include-group = "test" },
]
test = [
"coverage[toml]>=7.2",
"pytest>=6",
"pytest-cov",
]
docs = [
"myst-parser",
"sphinx>=3",
"sphinx-autobuild",
"sphinx-tabs",
"witchhazel",
]
[tool.hatch]
metadata.allow-ambiguous-features = true # disable normalization (tox-to-nox) for back-compat
[tool.ruff]
lint.extend-select = [
# "ANN", # flake8-annotations
"ARG", # flake8-unused-arguments
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"EM", # flake8-errmsg
"EXE", # flake8-executable
"FBT", # flake8-boolean-trap
"FLY", # flynt
"FURB", # refurb
"I", # isort
"ICN", # flake8-import-conventions
"ISC", # flake8-implicit-str-concat
"N", # flake8-naming
"PERF", # perflint
"PGH", # pygrep-hooks
"PIE", # flake8-pie
"PL", # pylint
"PT", # flake8-pytest-style
# "PTH", # flake8-use-pathlib
"PYI", # flake8-pyi
"RET", # flake8-return
"RUF", # Ruff-specific
"S", # eval -> literal_eval
"SIM", # flake8-simplify
"TCH", # flake8-type-checking
"TRY", # tryceratops
"UP", # pyupgrade
"YTT", # flake8-2020
]
lint.ignore = [
"ISC001", # Conflicts with formatter
"N802", # Function name should be lowercase
"N818", # Error suffix for errors
"PLR09", # Too many X
"PLR2004", # Magic value used in comparison
"S101", # Use of assert detected
"S603", # subprocess call - check for execution of untrusted input
]
lint.per-file-ignores."tests/*.py" = [
"FBT001", # Boolean args okay for fixtures
]
lint.per-file-ignores."tests/resources/**.py" = [ "ARG001", "TRY002" ]
lint.typing-modules = [ "nox._typing" ]
lint.flake8-unused-arguments.ignore-variadic-names = true
[tool.pyproject-fmt]
max_supported_python = "3.13"
[tool.pytest.ini_options]
minversion = "7.0"
addopts = [ "-ra", "--strict-markers", "--strict-config" ]
xfail_strict = true
filterwarnings = [ "error" ]
log_cli_level = "info"
testpaths = [ "tests" ]
pythonpath = [ ".github/" ]
[tool.coverage]
run.branch = true
run.relative_files = true
run.source_pkgs = [ "nox" ]
report.exclude_also = [ "def __dir__()", "if TYPE_CHECKING:", "@overload" ]
report.omit = [ "nox/_typing.py" ]
[tool.mypy]
python_version = "3.8"
strict = true
warn_unreachable = true
enable_error_code = [ "ignore-without-code", "redundant-expr", "truthy-bool" ]
mypy_path = [ ".github" ]
[[tool.mypy.overrides]]
module = [ "tox.*" ]
ignore_missing_imports = true