File: pyproject.toml

package info (click to toggle)
python-nox 2025.11.12-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 4,880 kB
  • sloc: python: 10,199; makefile: 204; sh: 6
file content (183 lines) | stat: -rw-r--r-- 4,710 bytes parent folder | download
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
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
[build-system]
build-backend = "hatchling.build"
requires = [
  "hatchling",
]

[project]
name = "nox"
version = "2025.11.12"
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.8"
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.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",
  "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>=20.9; python_version<'3.10'",
  "packaging>=21; python_version>='3.10'",
  "tomli>=1.1; python_version<'3.11'",
  "virtualenv>=20.14.1; python_version<'3.10'",
  "virtualenv>=20.15; python_version>='3.10'",
]
optional-dependencies.pbs = [
  "pbs-installer[all]>=2025.1.6",
]
optional-dependencies.tox_to_nox = [
  "importlib-resources; python_version<'3.9'",
  "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.2",
  "pytest>=7.4; python_version>='3.12'",
  "pytest>=7; python_version<'3.12'",
  "pytest-cov>=3",
]
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
  "FA",   # flake8-future-annotations
  "FBT",  # flake8-boolean-trap
  "FLY",  # flynt
  "FURB", # refurb
  "G",    # flake8-logging-format
  "I",    # isort
  "ICN",  # flake8-import-conventions
  "ISC",  # flake8-implicit-str-concat
  "LOG",  # flake8-logging
  "N",    # flake8-naming
  "PERF", # perflint
  "PGH",  # pygrep-hooks
  "PIE",  # flake8-pie
  "PL",   # pylint
  "PT",   # flake8-pytest-style
  # "PTH",  # flake8-use-pathlib
  "PYI",  # flake8-pyi
  "Q",    # flake8-quotes
  "RET",  # flake8-return
  "RUF",  # Ruff-specific
  "S",    # eval -> literal_eval
  "SIM",  # flake8-simplify
  "SLOT", # flake8-slots
  "T10",  # flake8-debugger
  "TC",   # flake8-type-checking
  "TRY",  # tryceratops
  "UP",   # pyupgrade
  "YTT",  # flake8-2020
]
lint.ignore = [
  "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.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.branch = true
run.relative_files = true
run.source_pkgs = [ "nox" ]
run.disable_warnings = [
  "no-ctracer",
]
report.exclude_also = [
  "@overload",
  "def __dir__()",
  "def __repr__",
  "if TYPE_CHECKING:",
]
report.omit = [ "nox/_typing.py" ]

[tool.mypy]
python_version = "3.9"
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