-
-
Notifications
You must be signed in to change notification settings - Fork 175
Expand file tree
/
Copy pathpyproject.toml
More file actions
158 lines (150 loc) · 4.08 KB
/
pyproject.toml
File metadata and controls
158 lines (150 loc) · 4.08 KB
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
[build-system]
build-backend = "hatchling.build"
requires = [
"hatchling",
]
[project]
name = "nox"
version = "2026.04.10"
description = "Flexible test automation."
readme = "README.md"
keywords = [
"automation",
"testing",
"tox",
]
license = "Apache-2.0"
authors = [
{ name = "Alethea Katherine Flowers", email = "me@thea.codes" },
]
requires-python = ">=3.10"
classifiers = [
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
"Intended Audience :: Developers",
"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.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Topic :: Software Development :: Testing",
]
dependencies = [
"argcomplete>=1.9.4,<4",
"attrs>=24.1",
"colorlog>=2.6.1,<7",
"dependency-groups>=1.1",
"humanize>=4",
"packaging>=22",
"tomli>=1.1; python_version<'3.11'",
"virtualenv>=20.15",
]
optional-dependencies.pbs = [
"pbs-installer[all]>=2025.1.6",
]
optional-dependencies.tox-to-nox = [
"jinja2",
"tox>=4",
]
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 = "test" },
]
test = [
"coverage[toml]>=7.10.3",
"pytest>=7.4; python_version>='3.12'",
"pytest>=7; python_version<'3.12'",
"pytest-xdist>=3",
]
docs = [
"docutils<0.22", # Waiting for sphinx-tabs release
"myst-parser",
"sphinx>=3",
"sphinx-autobuild",
"sphinx-tabs",
"witchhazel",
]
[tool.ruff]
show-fixes = true
lint.select = [ "ALL" ]
lint.ignore = [
"A002", # Function arguments can shadow builtins
"ANN401", # Any allowed (TODO: some maybe can be removed)
"C9", # Complexity
"COM812", # Trailing commas inform the formatter
"D", # Too many docs
"E501", # Line too long
"FIX", # We have todos
"N802", # Function name should be lowercase
"N818", # Error suffix for errors
"PLR09", # Too many X
"PLR2004", # Magic value used in comparison
"PTH", # Path usage (TODO)
"RSE102", # Parens on exception
"S101", # Assert is used by mypy and pytest
"S603", # subprocess call - check for execution of untrusted input
"SLF001", # Private member access
"T20", # We use print
"TD", # TODO format
]
lint.per-file-ignores.".github/**.py" = [ "INP001" ]
lint.per-file-ignores."docs/**.py" = [ "ERA001", "INP001" ]
lint.per-file-ignores."tests/*.py" = [ "FBT001", "INP001" ]
lint.per-file-ignores."tests/resources/**.py" = [ "ANN", "ARG001", "DTZ001", "ERA001", "TRY002" ]
lint.typing-modules = [ "nox._typing" ]
lint.flake8-annotations.allow-star-arg-any = true
lint.flake8-builtins.ignorelist = [ "copyright" ]
lint.flake8-unused-arguments.ignore-variadic-names = true
[tool.pyproject-fmt]
max_supported_python = "3.14"
[tool.pytest.ini_options]
minversion = "7.0"
addopts = [ "-ra", "--strict-markers", "--strict-config" ]
xfail_strict = true
filterwarnings = [ "error" ]
log_level = "INFO"
testpaths = [ "tests" ]
pythonpath = [ ".github/" ]
markers = [
"conda: test requires conda",
]
[tool.coverage]
run.core = "sysmon"
run.branch = true
run.patch = [ "subprocess" ]
run.relative_files = true
run.source_pkgs = [ "nox" ]
run.disable_warnings = [
"no-sysmon",
]
report.exclude_also = [
"@overload",
"def __dir__()",
"def __repr__",
"if TYPE_CHECKING:",
]
report.omit = [ "nox/_typing.py" ]
[tool.mypy]
python_version = "3.10"
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