Skip to content

another fix for ACR parameters in Cntd #461

another fix for ACR parameters in Cntd

another fix for ACR parameters in Cntd #461

GitHub Actions / flake8 failed Aug 1, 2024 in 1s

reviewdog [flake8] report

reported by reviewdog 🐶

Findings (19)

niftypet/nimpa/prc/imio.py|694 col 13| B001 Do not use bare except:, it also catches unexpected events like memory errors, interrupts, system exit, and so on. Prefer except Exception:. If you're sure what you're doing, be explicit and write except BaseException:.
niftypet/nimpa/prc/imio.py|694 col 13| E722 do not use bare 'except'
niftypet/nimpa/prc/imio.py|696 col 1| W293 blank line contains whitespace
niftypet/nimpa/prc/imio.py|698 col 9| E303 too many blank lines (2)
niftypet/nimpa/prc/imio.py|1057 col 45| E231 missing whitespace after ':'
niftypet/nimpa/prc/prc.py|98 col 90| E231 missing whitespace after ':'
niftypet/nimpa/prc/prc.py|102 col 54| E231 missing whitespace after ':'
niftypet/nimpa/prc/prc.py|897 col 13| E225 missing whitespace around operator
niftypet/nimpa/prc/regseg.py|19 col 1| I001 isort found an import in the wrong position
niftypet/nimpa/prc/regseg.py|20 col 1| I005 isort found an unexpected missing import
niftypet/nimpa/prc/regseg.py|151 col 14| B006 Do not use mutable data structures for argument defaults. They are created during function definition time. All calls to the function reuse this one instance of that data structure, persisting changes between them.
niftypet/nimpa/prc/regseg.py|170 col 48| W291 trailing whitespace
niftypet/nimpa/prc/regseg.py|176 col 5| E303 too many blank lines (2)
niftypet/nimpa/prc/regseg.py|242 col 53| E231 missing whitespace after ':'
niftypet/nimpa/prc/regseg.py|245 col 33| E203 whitespace before ','
niftypet/nimpa/prc/regseg.py|245 col 34| E231 missing whitespace after ','
niftypet/nimpa/prc/regseg.py|260 col 11| E271 multiple spaces after keyword
niftypet/nimpa/prc/regseg.py|380 col 45| E231 missing whitespace after ':'
niftypet/nimpa/prc/regseg.py|470 col 45| E231 missing whitespace after ':'

Filtered Findings (0)

Annotations

Check failure on line 694 in niftypet/nimpa/prc/imio.py

See this annotation in the file changed.

@github-actions github-actions / flake8

[flake8] niftypet/nimpa/prc/imio.py#L694

B001 Do not use bare `except:`, it also catches unexpected events like memory errors, interrupts, system exit, and so on.  Prefer `except Exception:`.  If you're sure what you're doing, be explicit and write `except BaseException:`.
Raw output
niftypet/nimpa/prc/imio.py:694:13: B001 Do not use bare `except:`, it also catches unexpected events like memory errors, interrupts, system exit, and so on.  Prefer `except Exception:`.  If you're sure what you're doing, be explicit and write `except BaseException:`.

Check failure on line 694 in niftypet/nimpa/prc/imio.py

See this annotation in the file changed.

@github-actions github-actions / flake8

[flake8] niftypet/nimpa/prc/imio.py#L694

E722 do not use bare 'except'
Raw output
niftypet/nimpa/prc/imio.py:694:13: E722 do not use bare 'except'

Check failure on line 696 in niftypet/nimpa/prc/imio.py

See this annotation in the file changed.

@github-actions github-actions / flake8

[flake8] niftypet/nimpa/prc/imio.py#L696

W293 blank line contains whitespace
Raw output
niftypet/nimpa/prc/imio.py:696:1: W293 blank line contains whitespace

Check failure on line 698 in niftypet/nimpa/prc/imio.py

See this annotation in the file changed.

@github-actions github-actions / flake8

[flake8] niftypet/nimpa/prc/imio.py#L698

E303 too many blank lines (2)
Raw output
niftypet/nimpa/prc/imio.py:698:9: E303 too many blank lines (2)

Check failure on line 1057 in niftypet/nimpa/prc/imio.py

See this annotation in the file changed.

@github-actions github-actions / flake8

[flake8] niftypet/nimpa/prc/imio.py#L1057

E231 missing whitespace after ':'
Raw output
niftypet/nimpa/prc/imio.py:1057:45: E231 missing whitespace after ':'

Check failure on line 98 in niftypet/nimpa/prc/prc.py

See this annotation in the file changed.

@github-actions github-actions / flake8

[flake8] niftypet/nimpa/prc/prc.py#L98

E231 missing whitespace after ':'
Raw output
niftypet/nimpa/prc/prc.py:98:90: E231 missing whitespace after ':'

Check failure on line 102 in niftypet/nimpa/prc/prc.py

See this annotation in the file changed.

@github-actions github-actions / flake8

[flake8] niftypet/nimpa/prc/prc.py#L102

E231 missing whitespace after ':'
Raw output
niftypet/nimpa/prc/prc.py:102:54: E231 missing whitespace after ':'

Check failure on line 897 in niftypet/nimpa/prc/prc.py

See this annotation in the file changed.

@github-actions github-actions / flake8

[flake8] niftypet/nimpa/prc/prc.py#L897

E225 missing whitespace around operator
Raw output
niftypet/nimpa/prc/prc.py:897:13: E225 missing whitespace around operator

Check failure on line 19 in niftypet/nimpa/prc/regseg.py

See this annotation in the file changed.

@github-actions github-actions / flake8

[flake8] niftypet/nimpa/prc/regseg.py#L19

I001 isort found an import in the wrong position
Raw output
niftypet/nimpa/prc/regseg.py:19:1: I001 isort found an import in the wrong position

Check failure on line 20 in niftypet/nimpa/prc/regseg.py

See this annotation in the file changed.

@github-actions github-actions / flake8

[flake8] niftypet/nimpa/prc/regseg.py#L20

I005 isort found an unexpected missing import
Raw output
niftypet/nimpa/prc/regseg.py:20:1: I005 isort found an unexpected missing import

Check failure on line 151 in niftypet/nimpa/prc/regseg.py

See this annotation in the file changed.

@github-actions github-actions / flake8

[flake8] niftypet/nimpa/prc/regseg.py#L151

B006 Do not use mutable data structures for argument defaults.  They are created during function definition time. All calls to the function reuse this one instance of that data structure, persisting changes between them.
Raw output
niftypet/nimpa/prc/regseg.py:151:14: B006 Do not use mutable data structures for argument defaults.  They are created during function definition time. All calls to the function reuse this one instance of that data structure, persisting changes between them.

Check failure on line 170 in niftypet/nimpa/prc/regseg.py

See this annotation in the file changed.

@github-actions github-actions / flake8

[flake8] niftypet/nimpa/prc/regseg.py#L170

W291 trailing whitespace
Raw output
niftypet/nimpa/prc/regseg.py:170:48: W291 trailing whitespace

Check failure on line 176 in niftypet/nimpa/prc/regseg.py

See this annotation in the file changed.

@github-actions github-actions / flake8

[flake8] niftypet/nimpa/prc/regseg.py#L176

E303 too many blank lines (2)
Raw output
niftypet/nimpa/prc/regseg.py:176:5: E303 too many blank lines (2)

Check failure on line 242 in niftypet/nimpa/prc/regseg.py

See this annotation in the file changed.

@github-actions github-actions / flake8

[flake8] niftypet/nimpa/prc/regseg.py#L242

E231 missing whitespace after ':'
Raw output
niftypet/nimpa/prc/regseg.py:242:53: E231 missing whitespace after ':'

Check failure on line 245 in niftypet/nimpa/prc/regseg.py

See this annotation in the file changed.

@github-actions github-actions / flake8

[flake8] niftypet/nimpa/prc/regseg.py#L245

E203 whitespace before ','
Raw output
niftypet/nimpa/prc/regseg.py:245:33: E203 whitespace before ','

Check failure on line 245 in niftypet/nimpa/prc/regseg.py

See this annotation in the file changed.

@github-actions github-actions / flake8

[flake8] niftypet/nimpa/prc/regseg.py#L245

E231 missing whitespace after ','
Raw output
niftypet/nimpa/prc/regseg.py:245:34: E231 missing whitespace after ','

Check failure on line 260 in niftypet/nimpa/prc/regseg.py

See this annotation in the file changed.

@github-actions github-actions / flake8

[flake8] niftypet/nimpa/prc/regseg.py#L260

E271 multiple spaces after keyword
Raw output
niftypet/nimpa/prc/regseg.py:260:11: E271 multiple spaces after keyword

Check failure on line 380 in niftypet/nimpa/prc/regseg.py

See this annotation in the file changed.

@github-actions github-actions / flake8

[flake8] niftypet/nimpa/prc/regseg.py#L380

E231 missing whitespace after ':'
Raw output
niftypet/nimpa/prc/regseg.py:380:45: E231 missing whitespace after ':'

Check failure on line 470 in niftypet/nimpa/prc/regseg.py

See this annotation in the file changed.

@github-actions github-actions / flake8

[flake8] niftypet/nimpa/prc/regseg.py#L470

E231 missing whitespace after ':'
Raw output
niftypet/nimpa/prc/regseg.py:470:45: E231 missing whitespace after ':'