diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 1478939e..ae5ec617 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -78,7 +78,7 @@ repos: types: [file, python] - repo: https://github.com/astral-sh/ruff-pre-commit - rev: "v0.14.0" + rev: "v0.14.3" hooks: - id: ruff-check types: [file, python] @@ -93,7 +93,7 @@ repos: types: [file, python] - repo: https://github.com/scientific-python/cookie - rev: 2025.10.01 + rev: 2025.10.20 hooks: - id: sp-repo-review additional_dependencies: ["repo-review[cli]"] diff --git a/noxfile.py b/noxfile.py old mode 100644 new mode 100755 index 7a6cab7c..59e1dc01 --- a/noxfile.py +++ b/noxfile.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 # Copyright iris-grib contributors # # This file is part of iris-grib and is released under the BSD license. @@ -17,6 +18,14 @@ import nox from nox.logger import logger + +# Adopt sp-repo-review recommendations. +nox.needs_version = ">=2022.1.7" +nox.options.default_venv_backend = "conda" +# /// script +# dependencies = ["nox"] +# /// + #: Default to reusing any pre-existing nox environments. nox.options.reuse_existing_virtualenvs = True @@ -335,3 +344,7 @@ def linkcheck(session: nox.sessions.Session): "linkcheck", external=True, ) + + +if __name__ == "__main__": + nox.main()