Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand All @@ -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
Expand Down
4 changes: 4 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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"]
Expand Down
4 changes: 4 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -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`.
Expand Down
Loading