Skip to content

Commit c35ccf1

Browse files
committed
add regex to accept the license header
1 parent ca6f4e6 commit c35ccf1

8 files changed

Lines changed: 31 additions & 0 deletions

File tree

pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,9 @@ ignore = [
232232
"D212", # Multi-line docstring summary should start at the first line
233233
]
234234

235+
[tool.ruff.lint.flake8-copyright]
236+
notice-rgx = "(?i)copyright.*python-stratify contributors"
237+
235238
[tool.ruff.lint.isort]
236239
force-sort-within-sections = true
237240
# Change to match specific package name:

setup.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# Copyright python-stratify contributors
2+
#
3+
# This file is part of python-stratify and is released under the BSD license.
4+
# See LICENSE in the root of the repository for full licensing details.
15
import os
26
from pathlib import Path
37
import sys

src/stratify/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# Copyright python-stratify contributors
2+
#
3+
# This file is part of python-stratify and is released under the BSD license.
4+
# See LICENSE in the root of the repository for full licensing details.
15
from ._bounded_vinterp import interpolate_conservative # noqa: F401
26
from ._version import version as __version__ # noqa: F401
37
from ._vinterp import * # noqa: F403

src/stratify/_bounded_vinterp.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# Copyright python-stratify contributors
2+
#
3+
# This file is part of python-stratify and is released under the BSD license.
4+
# See LICENSE in the root of the repository for full licensing details.
15
import numpy as np
26

37
from ._conservative import conservative_interpolation

src/stratify/tests/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Copyright python-stratify contributors
2+
#
3+
# This file is part of python-stratify and is released under the BSD license.
4+
# See LICENSE in the root of the repository for full licensing details.

src/stratify/tests/performance.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# Copyright python-stratify contributors
2+
#
3+
# This file is part of python-stratify and is released under the BSD license.
4+
# See LICENSE in the root of the repository for full licensing details.
15
"""Functions that may be used to measure performance of a component."""
26

37
import dask.array as da

src/stratify/tests/test_bounded_vinterp.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# Copyright python-stratify contributors
2+
#
3+
# This file is part of python-stratify and is released under the BSD license.
4+
# See LICENSE in the root of the repository for full licensing details.
15
import unittest
26

37
import numpy as np

src/stratify/tests/test_vinterp.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# Copyright python-stratify contributors
2+
#
3+
# This file is part of python-stratify and is released under the BSD license.
4+
# See LICENSE in the root of the repository for full licensing details.
15
import unittest
26

37
import dask.array as da

0 commit comments

Comments
 (0)