diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 6f7521e..5b64c90 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -40,7 +40,7 @@ repos: - repo: https://github.com/astral-sh/ruff-pre-commit - rev: "v0.15.12" + rev: "v0.16.1" hooks: - id: ruff-check types: [file, python] @@ -49,7 +49,7 @@ repos: types: [file, python] - repo: https://github.com/codespell-project/codespell - rev: "v2.4.2" + rev: "v2.4.3" hooks: - id: codespell types_or: [asciidoc, python, markdown, rst] @@ -58,7 +58,7 @@ repos: - repo: https://github.com/pycqa/isort - rev: '9.0.0a3' + rev: '8.0.1' hooks: - id: isort name: isort (cython) @@ -72,7 +72,7 @@ repos: types: [file, python] - repo: https://github.com/pre-commit/mirrors-mypy - rev: 'v1.20.2' + rev: 'v2.3.0' hooks: - id: mypy exclude: 'noxfile\.py|docs/conf\.py' @@ -84,7 +84,7 @@ repos: - id: validate-pyproject - repo: https://github.com/scientific-python/cookie - rev: 2026.04.04 + rev: 2026.06.18 hooks: - id: sp-repo-review additional_dependencies: ["repo-review[cli]"] diff --git a/pyproject.toml b/pyproject.toml index 9adc4f4..9a8030c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -232,6 +232,9 @@ ignore = [ "D212", # Multi-line docstring summary should start at the first line ] +[tool.ruff.lint.flake8-copyright] +notice-rgx = "(?i)copyright.*python-stratify contributors" + [tool.ruff.lint.isort] force-sort-within-sections = true # Change to match specific package name: diff --git a/setup.py b/setup.py index 964cba9..b45b91f 100644 --- a/setup.py +++ b/setup.py @@ -1,3 +1,7 @@ +# Copyright python-stratify contributors +# +# This file is part of python-stratify and is released under the BSD license. +# See LICENSE in the root of the repository for full licensing details. import os from pathlib import Path import sys diff --git a/src/stratify/__init__.py b/src/stratify/__init__.py index 8e8d518..a93ca9a 100644 --- a/src/stratify/__init__.py +++ b/src/stratify/__init__.py @@ -1,3 +1,7 @@ +# Copyright python-stratify contributors +# +# This file is part of python-stratify and is released under the BSD license. +# See LICENSE in the root of the repository for full licensing details. from ._bounded_vinterp import interpolate_conservative # noqa: F401 from ._version import version as __version__ # noqa: F401 from ._vinterp import * # noqa: F403 diff --git a/src/stratify/_bounded_vinterp.py b/src/stratify/_bounded_vinterp.py index 2c520d0..01367ac 100644 --- a/src/stratify/_bounded_vinterp.py +++ b/src/stratify/_bounded_vinterp.py @@ -1,3 +1,7 @@ +# Copyright python-stratify contributors +# +# This file is part of python-stratify and is released under the BSD license. +# See LICENSE in the root of the repository for full licensing details. import numpy as np from ._conservative import conservative_interpolation diff --git a/src/stratify/tests/__init__.py b/src/stratify/tests/__init__.py index e69de29..41dc598 100644 --- a/src/stratify/tests/__init__.py +++ b/src/stratify/tests/__init__.py @@ -0,0 +1,4 @@ +# Copyright python-stratify contributors +# +# This file is part of python-stratify and is released under the BSD license. +# See LICENSE in the root of the repository for full licensing details. diff --git a/src/stratify/tests/performance.py b/src/stratify/tests/performance.py index 88e6616..48ff67b 100644 --- a/src/stratify/tests/performance.py +++ b/src/stratify/tests/performance.py @@ -1,3 +1,7 @@ +# Copyright python-stratify contributors +# +# This file is part of python-stratify and is released under the BSD license. +# See LICENSE in the root of the repository for full licensing details. """Functions that may be used to measure performance of a component.""" import dask.array as da diff --git a/src/stratify/tests/test_bounded_vinterp.py b/src/stratify/tests/test_bounded_vinterp.py index 06ba948..22100b8 100644 --- a/src/stratify/tests/test_bounded_vinterp.py +++ b/src/stratify/tests/test_bounded_vinterp.py @@ -1,3 +1,7 @@ +# Copyright python-stratify contributors +# +# This file is part of python-stratify and is released under the BSD license. +# See LICENSE in the root of the repository for full licensing details. import unittest import numpy as np diff --git a/src/stratify/tests/test_vinterp.py b/src/stratify/tests/test_vinterp.py index 27ebb68..28262ad 100644 --- a/src/stratify/tests/test_vinterp.py +++ b/src/stratify/tests/test_vinterp.py @@ -1,3 +1,7 @@ +# Copyright python-stratify contributors +# +# This file is part of python-stratify and is released under the BSD license. +# See LICENSE in the root of the repository for full licensing details. import unittest import dask.array as da