From c35ccf13755e82715f9395963f14fd6644f9aabc Mon Sep 17 00:00:00 2001 From: Henry Wright Date: Wed, 19 Aug 2026 10:34:35 +0100 Subject: [PATCH 1/2] add regex to accept the license header --- pyproject.toml | 3 +++ setup.py | 4 ++++ src/stratify/__init__.py | 4 ++++ src/stratify/_bounded_vinterp.py | 4 ++++ src/stratify/tests/__init__.py | 4 ++++ src/stratify/tests/performance.py | 4 ++++ src/stratify/tests/test_bounded_vinterp.py | 4 ++++ src/stratify/tests/test_vinterp.py | 4 ++++ 8 files changed, 31 insertions(+) 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 From 08997026e2bf5afb68584f3864c7fd115f78ad9e Mon Sep 17 00:00:00 2001 From: Henry Wright Date: Wed, 19 Aug 2026 11:53:32 +0100 Subject: [PATCH 2/2] revert to latest versions --- .pre-commit-config.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 0e4c0c1..5b64c90 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -58,7 +58,7 @@ repos: - repo: https://github.com/pycqa/isort - rev: '9.0.0b1' + rev: '8.0.1' hooks: - id: isort name: isort (cython) @@ -91,7 +91,7 @@ repos: args: ["--show=errskip"] - repo: https://github.com/numpy/numpydoc - rev: v1.11.0rc0 + rev: v1.10.0 hooks: - id: numpydoc-validation types: [file, python]