Skip to content

Commit d7072e3

Browse files
authored
chore: include 3.13 in classifiers (#851)
* chore: include 3.13 in classifiers * chore: pre-commit version bumps Signed-off-by: Henry Schreiner <[email protected]> --------- Signed-off-by: Henry Schreiner <[email protected]>
1 parent a49c730 commit d7072e3

File tree

8 files changed

+46
-47
lines changed

8 files changed

+46
-47
lines changed

.pre-commit-config.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ ci:
55

66
repos:
77
- repo: https://github.com/pre-commit/pre-commit-hooks
8-
rev: v4.5.0
8+
rev: v4.6.0
99
hooks:
1010
- id: check-added-large-files
1111
- id: check-case-conflict
@@ -19,19 +19,19 @@ repos:
1919
- id: trailing-whitespace
2020

2121
- repo: https://github.com/tox-dev/pyproject-fmt
22-
rev: "1.3.0"
22+
rev: "2.2.4"
2323
hooks:
2424
- id: pyproject-fmt
2525

2626
- repo: https://github.com/astral-sh/ruff-pre-commit
27-
rev: v0.1.3
27+
rev: v0.6.8
2828
hooks:
2929
- id: ruff
3030
args: ["--fix", "--show-fixes"]
3131
- id: ruff-format
3232

3333
- repo: https://github.com/pre-commit/mirrors-mypy
34-
rev: v1.6.1
34+
rev: v1.11.2
3535
hooks:
3636
- id: mypy
3737
files: ^nox/
@@ -44,7 +44,7 @@ repos:
4444
- uv
4545

4646
- repo: https://github.com/codespell-project/codespell
47-
rev: v2.2.6
47+
rev: v2.3.0
4848
hooks:
4949
- id: codespell
5050

CODE_OF_CONDUCT.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ In the interest of fostering an open and welcoming environment, we as
66
contributors and maintainers pledge to making participation in our project and
77
our community a harassment-free experience for everyone, regardless of age, body
88
size, disability, ethnicity, sex characteristics, gender identity and expression,
9-
level of experience, education, socio-economic status, nationality, personal
9+
level of experience, education, socioeconomic status, nationality, personal
1010
appearance, race, religion, or sexual identity and orientation.
1111

1212
## Our Standards

nox/_decorators.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def _copy_func(src: T, name: str | None = None) -> T:
5151
closure=src.__closure__,
5252
)
5353
dst.__dict__.update(copy.deepcopy(src.__dict__))
54-
dst = functools.update_wrapper(dst, src)
54+
dst = functools.update_wrapper(dst, src) # type: ignore[assignment]
5555
dst.__kwdefaults__ = src.__kwdefaults__
5656
return cast(T, dst)
5757

nox/_option_set.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -205,9 +205,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None:
205205
self.parser_args = args
206206
self.parser_kwargs = kwargs
207207
self.options: collections.OrderedDict[str, Option] = collections.OrderedDict()
208-
self.groups: collections.OrderedDict[
209-
str, OptionGroup
210-
] = collections.OrderedDict()
208+
self.groups: collections.OrderedDict[str, OptionGroup] = (
209+
collections.OrderedDict()
210+
)
211211

212212
def add_options(self, *args: Option) -> None:
213213
"""Adds a sequence of Options to the OptionSet.

nox/manifest.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ def notify(
319319
# Locate the session in the list of all sessions, and place it at
320320
# the end of the queue.
321321
for s in self._all_sessions:
322-
if s == session or s.name == session or session in s.signatures:
322+
if s == session or s.name == session or session in s.signatures: # noqa: PLR1714
323323
if posargs is not None:
324324
s.posargs = list(posargs)
325325
self._queue.append(s)
@@ -354,7 +354,7 @@ def __len__(self) -> int:
354354
def keyword_match(expression: str, keywords: Iterable[str]) -> Any:
355355
"""See if an expression matches the given set of keywords."""
356356
locals = KeywordLocals(set(keywords))
357-
return eval(expression, {}, locals) # noqa: PGH001
357+
return eval(expression, {}, locals)
358358

359359

360360
def _null_session_func_(session: Session) -> None:

nox/registry.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,7 @@
2929

3030

3131
@overload
32-
def session_decorator(__func: F) -> F:
33-
...
32+
def session_decorator(__func: F) -> F: ...
3433

3534

3635
@overload
@@ -45,8 +44,7 @@ def session_decorator(
4544
tags: Sequence[str] | None = ...,
4645
*,
4746
default: bool = ...,
48-
) -> Callable[[F], F]:
49-
...
47+
) -> Callable[[F], F]: ...
5048

5149

5250
def session_decorator(

nox/virtualenv.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -484,7 +484,7 @@ def _check_reused_environment_type(self) -> bool:
484484
return True
485485

486486
# Switching to "uv" is safe, but not the other direction (no pip)
487-
if old_env in {"virtualenv", "venv"} and self.venv_backend == "uv":
487+
if old_env in {"virtualenv", "venv"} and self.venv_backend == "uv": # noqa: SIM103
488488
return True
489489

490490
return False

pyproject.toml

Lines changed: 31 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -36,52 +36,50 @@ classifiers = [
3636
"Programming Language :: Python :: 3.10",
3737
"Programming Language :: Python :: 3.11",
3838
"Programming Language :: Python :: 3.12",
39+
"Programming Language :: Python :: 3.13",
3940
"Topic :: Software Development :: Testing",
4041
]
4142
dependencies = [
42-
"argcomplete<4.0,>=1.9.4",
43-
"colorlog<7.0.0,>=2.6.1",
43+
"argcomplete<4,>=1.9.4",
44+
"colorlog<7,>=2.6.1",
4445
"packaging>=20.9",
45-
'tomli>=1; python_version < "3.11"',
46+
"tomli>=1; python_version<'3.11'",
4647
"virtualenv>=20.14.1",
4748
]
48-
[project.optional-dependencies]
49-
tox_to_nox = [
49+
optional-dependencies.tox_to_nox = [
5050
"jinja2",
5151
"tox",
5252
]
53-
uv = [
53+
optional-dependencies.uv = [
5454
"uv>=0.1.6",
5555
]
56-
[project.urls]
57-
bug-tracker = "https://github.com/wntrblm/nox/issues"
58-
documentation = "https://nox.thea.codes"
59-
homepage = "https://github.com/wntrblm/nox"
60-
repository = "https://github.com/wntrblm/nox"
61-
[project.scripts]
62-
nox = "nox.__main__:main"
63-
tox-to-nox = "nox.tox_to_nox:main"
56+
urls.bug-tracker = "https://github.com/wntrblm/nox/issues"
57+
urls.documentation = "https://nox.thea.codes"
58+
urls.homepage = "https://github.com/wntrblm/nox"
59+
urls.repository = "https://github.com/wntrblm/nox"
60+
scripts.nox = "nox.__main__:main"
61+
scripts.tox-to-nox = "nox.tox_to_nox:main"
6462

6563
[tool.hatch]
6664
metadata.allow-ambiguous-features = true # disable normalization (tox-to-nox) for back-compat
6765

68-
[tool.ruff.lint]
69-
extend-select = [
70-
"B", # flake8-bugbear
71-
"I", # isort
72-
"C4", # flake8-comprehensions
73-
"ICN", # flake8-import-conventions
74-
"ISC", # flake8-implicit-str-concat
75-
"PL", # pylint
76-
"PGH", # pygrep-hooks
77-
"PIE", # flake8-pie
78-
"RUF", # Ruff-specific
79-
"SIM", # flake8-simplify
80-
"UP", # pyupgrade
81-
"YTT", # flake8-2020
82-
"EXE", # flake8-executable
66+
[tool.ruff]
67+
lint.extend-select = [
68+
"B", # flake8-bugbear
69+
"C4", # flake8-comprehensions
70+
"EXE", # flake8-executable
71+
"I", # isort
72+
"ICN", # flake8-import-conventions
73+
"ISC", # flake8-implicit-str-concat
74+
"PGH", # pygrep-hooks
75+
"PIE", # flake8-pie
76+
"PL", # pylint
77+
"RUF", # Ruff-specific
78+
"SIM", # flake8-simplify
79+
"UP", # pyupgrade
80+
"YTT", # flake8-2020
8381
]
84-
ignore = [
82+
lint.ignore = [
8583
"ISC001", # Conflicts with formatter
8684
"PLR09", # Too many X
8785
"PLR2004", # Magic value used in comparison
@@ -90,6 +88,9 @@ ignore = [
9088
[tool.isort]
9189
profile = "black"
9290

91+
[tool.pyproject-fmt]
92+
max_supported_python = "3.13"
93+
9394
[tool.pytest.ini_options]
9495
minversion = "6.0"
9596
addopts = [ "-ra", "--strict-markers", "--strict-config" ]

0 commit comments

Comments
 (0)