Skip to content

Commit

Permalink
Merge branch 'main' into fix_ci
Browse files Browse the repository at this point in the history
  • Loading branch information
HGWright authored Sep 4, 2024
2 parents 6750636 + 7b5d1aa commit fd9ac06
Show file tree
Hide file tree
Showing 14 changed files with 258 additions and 210 deletions.
8 changes: 6 additions & 2 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,12 @@ updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
# Check for updates to GitHub Actions every weekday
interval: "daily"
# Check later in the week - the upstream dependabot check in `workflows` runs deliberately early in the week.
# Therefore allowing time for the `workflows` update to be merged-and-released first.
interval: "weekly"
day: "thursday"
time: "01:00"
timezone: "Europe/London"
groups:
dependencies:
patterns:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci-locks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,5 @@ concurrency:

jobs:
refresh_lockfiles:
uses: scitools/workflows/.github/workflows/refresh-lockfiles.yml@2024.06.0
uses: scitools/workflows/.github/workflows/refresh-lockfiles.yml@2024.07.4
secrets: inherit
2 changes: 1 addition & 1 deletion .github/workflows/ci-manifest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@ concurrency:
jobs:
manifest:
name: "check-manifest"
uses: scitools/workflows/.github/workflows/ci-manifest.yml@2024.06.0
uses: scitools/workflows/.github/workflows/ci-manifest.yml@2024.07.4
2 changes: 1 addition & 1 deletion .github/workflows/ci-wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ jobs:
fetch-depth: 0

- name: "build ${{ matrix.os }} (${{ matrix.arch }}) wheels"
uses: pypa/cibuildwheel@v2.18.1
uses: pypa/cibuildwheel@v2.19.2
env:
CIBW_SKIP: "cp39-* cp313-* pp* *-musllinux*"
CIBW_ARCHS: ${{ matrix.arch }}
Expand Down
10 changes: 7 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks

ci:
autoupdate_commit_msg: "chore: update pre-commit hooks"

repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: 'v4.6.0'
Expand All @@ -16,14 +20,14 @@ repos:
- id: debug-statements
# Don't commit to master branch.
- id: no-commit-to-branch
- repo: https://github.com/psf/black
rev: '24.4.2'
- repo: https://github.com/psf/black-pre-commit-mirror
rev: '24.8.0'
hooks:
- id: black
types: [file, python]
args: [--config=./pyproject.toml, .]
- repo: https://github.com/PyCQA/flake8
rev: '7.0.0'
rev: '7.1.1'
hooks:
# Run flake8.
- id: flake8
Expand Down
144 changes: 78 additions & 66 deletions requirements/locks/py310-linux-64.lock

Large diffs are not rendered by default.

144 changes: 78 additions & 66 deletions requirements/locks/py311-linux-64.lock

Large diffs are not rendered by default.

144 changes: 78 additions & 66 deletions requirements/locks/py39-linux-64.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion requirements/py310.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ dependencies:
- setuptools-scm

# Core dependencies.
- numpy>=1.21
- numpy==1.26.4
- cython

# Optional dependencies.
Expand Down
2 changes: 1 addition & 1 deletion requirements/py311.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ dependencies:
- setuptools-scm

# Core dependencies.
- numpy>=1.21
- numpy==1.26.4
- cython

# Optional dependencies.
Expand Down
2 changes: 1 addition & 1 deletion requirements/py39.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ dependencies:
- setuptools-scm

# Core dependencies.
- numpy>=1.21
- numpy==1.26.4
- cython

# Optional dependencies.
Expand Down
2 changes: 1 addition & 1 deletion requirements/pypi-core.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
Cython
dask[array]
numpy>=1.21
numpy==1.26.4
2 changes: 2 additions & 0 deletions src/stratify/_conservative.pyx
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import numpy as np
cimport numpy as np

# Must be called to use the C-API with Numpy.
np.import_array()

cdef calculate_weights(np.ndarray[np.float64_t, ndim=2] src_point,
np.ndarray[np.float64_t, ndim=2] tgt_point):
Expand Down
2 changes: 2 additions & 0 deletions src/stratify/_vinterp.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ import numpy as np
cimport cython
cimport numpy as np

# Must be called to use the C-API with Numpy.
np.import_array()

cdef extern from "numpy/npy_math.h" nogil:
bint isnan "npy_isnan"(long double)
Expand Down

0 comments on commit fd9ac06

Please sign in to comment.