Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/pytest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --progress-bar off --upgrade pip setuptools
python -m pip install --progress-bar off .[test]
python -m pip install --progress-bar off --no-cache-dir .[test]
python -m pip install matplotlib
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
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
Expand Down
1 change: 0 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ repos:
hooks:
- id: codespell


- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.12.2
hooks:
Expand Down
4 changes: 2 additions & 2 deletions nigsp/tests/test_io.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import nibabel
import pymatreader
import scipy
from numpy import asarray, empty, genfromtxt, savetxt
from numpy import asarray, empty, genfromtxt, ones, savetxt
from numpy.random import rand
from pytest import mark, raises

Expand Down Expand Up @@ -123,7 +123,7 @@ def test_export_nifti(atlas):
"""Test export_nifti."""
img = nibabel.load(atlas)
shape = img.get_fdata().shape
io.export_nifti(empty(shape), img, "book")
io.export_nifti(ones(shape), img, "book")
assert isfile("book.nii.gz")
remove("book.nii.gz")
remove(atlas)
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ omit = [
[tool.ruff]
extend-exclude = ['docs', 'versioneer.py', 'setup.py']
line-length = 88
target-version = 'py37'
target-version = 'py38'

[tool.ruff.format]
docstring-code-format = true
Expand Down