Skip to content

Commit 672893c

Browse files
⬆️🪝 Update pre-commit hook scientific-python/cookie to v2025.10.20 (#225)
This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [scientific-python/cookie](https://redirect.github.com/scientific-python/cookie) | repository | patch | `2025.10.01` -> `2025.10.20` | Note: The `pre-commit` manager in Renovate is not supported by the `pre-commit` maintainers or community. Please do not report any problems there, instead [create a Discussion in the Renovate repository](https://redirect.github.com/renovatebot/renovate/discussions/new) if you have any questions. --- ### Release Notes <details> <summary>scientific-python/cookie (scientific-python/cookie)</summary> ### [`v2025.10.20`](https://redirect.github.com/scientific-python/cookie/releases/tag/2025.10.20) [Compare Source](https://redirect.github.com/scientific-python/cookie/compare/2025.10.01...2025.10.20) <!-- Release notes generated using configuration in .github/release.yml at main --> #### What's Changed - feat: add noxfile checks by [@&#8203;henryiii](https://redirect.github.com/henryiii) in [#&#8203;659](https://redirect.github.com/scientific-python/cookie/pull/659) - fix: hide the setuptools family when not using it by [@&#8203;henryiii](https://redirect.github.com/henryiii) in [#&#8203;657](https://redirect.github.com/scientific-python/cookie/pull/657) - docs: mention uv high level to clarify statement by [@&#8203;henryiii](https://redirect.github.com/henryiii) in [#&#8203;654](https://redirect.github.com/scientific-python/cookie/pull/654) - docs: use dependency-groups in more places by [@&#8203;henryiii](https://redirect.github.com/henryiii) in [#&#8203;647](https://redirect.github.com/scientific-python/cookie/pull/647) - chore: 3.10-3.14 active range by [@&#8203;henryiii](https://redirect.github.com/henryiii) in [#&#8203;652](https://redirect.github.com/scientific-python/cookie/pull/652) - chore: fix for pylint 4 by [@&#8203;henryiii](https://redirect.github.com/henryiii) in [#&#8203;656](https://redirect.github.com/scientific-python/cookie/pull/656) - chore: add 3.14 classifier by [@&#8203;henryiii](https://redirect.github.com/henryiii) in [#&#8203;655](https://redirect.github.com/scientific-python/cookie/pull/655) **Full Changelog**: <scientific-python/cookie@2025.10.01...2025.10.20> </details> --- ### Configuration 📅 **Schedule**: Branch creation - "every weekend" (UTC), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/munich-quantum-toolkit/problemsolver). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0MS4xNTYuMSIsInVwZGF0ZWRJblZlciI6IjQxLjE1Ni4xIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJkZXBlbmRlbmNpZXMiLCJwcmUtY29tbWl0Il19--> --------- Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Daniel Haag <[email protected]>
1 parent 721fcbe commit 672893c

File tree

2 files changed

+15
-8
lines changed

2 files changed

+15
-8
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ repos:
110110

111111
# Check best practices for scientific Python code
112112
- repo: https://github.com/scientific-python/cookie
113-
rev: 2025.10.01
113+
rev: 2025.10.20
114114
hooks:
115115
- id: sp-repo-review
116116
additional_dependencies: ["repo-review[cli]"]

noxfile.py

100644100755
Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#!/usr/bin/env -S uv run --script --quiet
12
# Copyright (c) 2023 - 2025 Chair for Design Automation, TUM
23
# Copyright (c) 2025 Munich Quantum Software Company GmbH
34
# All rights reserved.
@@ -6,6 +7,10 @@
67
#
78
# Licensed under the MIT License
89

10+
# /// script
11+
# dependencies = ["nox"]
12+
# ///
13+
914
"""Nox sessions."""
1015

1116
from __future__ import annotations
@@ -23,10 +28,9 @@
2328
from collections.abc import Generator, Sequence
2429

2530

26-
nox.needs_version = ">=2024.3.2"
31+
nox.needs_version = ">=2025.10.16"
2732
nox.options.default_venv_backend = "uv"
2833

29-
nox.options.sessions = ["lint", "tests", "minimums"]
3034

3135
PYTHON_ALL_VERSIONS = ["3.10", "3.11", "3.12", "3.13"]
3236

@@ -45,7 +49,7 @@ def preserve_lockfile() -> Generator[None]:
4549
shutil.move(f"{temp_dir_name}/uv.lock", "uv.lock")
4650

4751

48-
@nox.session(reuse_venv=True)
52+
@nox.session(reuse_venv=True, default=True)
4953
def lint(session: nox.Session) -> None:
5054
"""Run the linter."""
5155
if shutil.which("pre-commit") is None:
@@ -83,13 +87,13 @@ def _run_tests(
8387
)
8488

8589

86-
@nox.session(reuse_venv=True, python=PYTHON_ALL_VERSIONS)
90+
@nox.session(python=PYTHON_ALL_VERSIONS, reuse_venv=True, default=True)
8791
def tests(session: nox.Session) -> None:
8892
"""Run the test suite."""
8993
_run_tests(session)
9094

9195

92-
@nox.session(reuse_venv=True, venv_backend="uv", python=PYTHON_ALL_VERSIONS)
96+
@nox.session(python=PYTHON_ALL_VERSIONS, reuse_venv=True, venv_backend="uv", default=True)
9397
def minimums(session: nox.Session) -> None:
9498
"""Test the minimum versions of dependencies."""
9599
with preserve_lockfile():
@@ -121,15 +125,18 @@ def docs(session: nox.Session) -> None:
121125
f"docs/_build/{args.builder}",
122126
*posargs,
123127
]
124-
125128
env = {"UV_PROJECT_ENVIRONMENT": session.virtualenv.location}
126129
session.run(
127130
"uv",
128131
"run",
129-
"--no-dev", # do not auto-install dev dependencies
132+
"--no-dev",
130133
"--group",
131134
"docs",
132135
"sphinx-autobuild" if serve else "sphinx-build",
133136
*shared_args,
134137
env=env,
135138
)
139+
140+
141+
if __name__ == "__main__":
142+
nox.main()

0 commit comments

Comments
 (0)