Skip to content
This repository has been archived by the owner on Dec 20, 2024. It is now read-only.

Commit

Permalink
CI: Update flake8 test, apply fix
Browse files Browse the repository at this point in the history
  • Loading branch information
effigies committed Mar 19, 2024
1 parent dd88ede commit a6073ef
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
14 changes: 6 additions & 8 deletions .github/workflows/contrib.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,13 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
submodules: recursive
fetch-depth: 0
- name: Set up Python 3.9
uses: actions/setup-python@v2
- name: Set up Python 3
uses: actions/setup-python@v5
with:
python-version: 3.9
- name: Install flake8
run: python -m pip install flake8
- name: Check EddyMotion
run: python -m flake8 src
python-version: 3
- name: Lint EddyMotion
run: pipx run flake8-pyproject
2 changes: 1 addition & 1 deletion test/test_estimator.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,4 +77,4 @@ def test_ANTs_config_b0(datadir, tmp_path, r_x, r_y, r_z, t_x, t_y, t_z):

coords = xfm.reference.ndcoords.T
rms = np.sqrt(((xfm.map(coords) - xform.map(coords)) ** 2).sum(1)).mean()
assert rms < 0.8
assert rms < 0.8

0 comments on commit a6073ef

Please sign in to comment.