Skip to content

Commit 6f54b6c

Browse files
authored
Merge branch 'master' into pre-commit-ci-update-config
2 parents 772bf0b + b62b891 commit 6f54b6c

File tree

4 files changed

+4
-5
lines changed

4 files changed

+4
-5
lines changed

.github/workflows/pytest.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ jobs:
6666
- name: Install dependencies
6767
run: |
6868
python -m pip install --progress-bar off --upgrade pip setuptools
69-
python -m pip install --progress-bar off .[test]
69+
python -m pip install --progress-bar off --no-cache-dir .[test]
7070
python -m pip install matplotlib
7171
python -m pip install --progress-bar off --upgrade --no-deps --pre --only-binary :all: -i https://pypi.anaconda.org/scientific-python-nightly-wheels/simple --timeout=180 matplotlib
7272
python -m pip install --progress-bar off --upgrade --pre --only-binary :all: -i https://pypi.anaconda.org/scientific-python-nightly-wheels/simple --timeout=180 numpy scipy

.pre-commit-config.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ repos:
2525
hooks:
2626
- id: codespell
2727

28-
2928
- repo: https://github.com/astral-sh/ruff-pre-commit
3029
rev: v0.14.2
3130
hooks:

nigsp/tests/test_io.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
import nibabel
99
import pymatreader
1010
import scipy
11-
from numpy import asarray, empty, genfromtxt, savetxt
11+
from numpy import asarray, empty, genfromtxt, ones, savetxt
1212
from numpy.random import rand
1313
from pytest import mark, raises
1414

@@ -123,7 +123,7 @@ def test_export_nifti(atlas):
123123
"""Test export_nifti."""
124124
img = nibabel.load(atlas)
125125
shape = img.get_fdata().shape
126-
io.export_nifti(empty(shape), img, "book")
126+
io.export_nifti(ones(shape), img, "book")
127127
assert isfile("book.nii.gz")
128128
remove("book.nii.gz")
129129
remove(atlas)

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ omit = [
2121
[tool.ruff]
2222
extend-exclude = ['docs', 'versioneer.py', 'setup.py']
2323
line-length = 88
24-
target-version = 'py37'
24+
target-version = 'py38'
2525

2626
[tool.ruff.format]
2727
docstring-code-format = true

0 commit comments

Comments
 (0)