diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index a0f7a0eb..9449444d 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -53,14 +53,14 @@ repos: types: [file, rst] - repo: https://github.com/codespell-project/codespell - rev: "v2.4.1" + rev: "v2.4.3" hooks: - id: codespell types_or: [asciidoc, python, markdown, rst] additional_dependencies: [tomli] - repo: https://github.com/pre-commit/mirrors-mypy - rev: 'v1.19.1' + rev: 'v2.3.0' hooks: - id: mypy additional_dependencies: @@ -74,7 +74,7 @@ repos: types: [file, python] - repo: https://github.com/astral-sh/ruff-pre-commit - rev: "v0.15.4" + rev: "v0.16.1" hooks: # Run the linter - id: ruff-check @@ -90,7 +90,7 @@ repos: types: [file, python] - repo: https://github.com/scientific-python/cookie - rev: 2025.11.21 + rev: 2026.06.18 hooks: - id: sp-repo-review additional_dependencies: ["repo-review[cli]"] # TODO: Only neededed if extra dependencies are required diff --git a/pyproject.toml b/pyproject.toml index e608e4cd..d49eeed8 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -374,6 +374,7 @@ ignore = [ "PLC0414", # Import alias does not rename original package "PLR0912", # Too many branches "PLR0913", # too-many-argument + "PLR0917", # too-many-postional-arguments "PLR2004", # magic-value-comparison "PT006", # pytest-parametrize-names-wrong-type "PT011", # pytest-raises-too-broad @@ -406,6 +407,9 @@ select = [ "D212", # Multi-line docstring summary should start at the first line ] +[tool.ruff.lint.flake8-copyright] +notice-rgx = "(?i)copyright.*cf-units contributors" + [tool.ruff.lint.isort] force-sort-within-sections = true known-first-party = ["cf_units"] diff --git a/setup.py b/setup.py index b5da405a..13a9cad5 100644 --- a/setup.py +++ b/setup.py @@ -1,3 +1,7 @@ +# Copyright cf-units contributors +# +# This file is part of cf-units and is released under the BSD license. +# See LICENSE in the root of the repository for full licensing details. """Setup routines to enable cf-units' Cython elements. All other setup configuration is in `pyproject.toml`.