Skip to content

Commit ac29ed2

Browse files
MNT: ignore F401 in __init__.py
Enforce that in pyproject.toml instead of __init__.py itself.
1 parent a6f2a61 commit ac29ed2

File tree

8 files changed

+4
-11
lines changed

8 files changed

+4
-11
lines changed

nibabel/__init__.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@
77
#
88
### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ##
99

10-
# ruff: noqa: F401
11-
1210
import os
1311

1412
from .info import long_description as __doc__

nibabel/cifti2/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
# copyright and license terms.
77
#
88
### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ##
9-
# ruff: noqa: F401
109
"""CIFTI-2 format IO
1110
1211
.. currentmodule:: nibabel.cifti2

nibabel/freesurfer/__init__.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
"""Reading functions for freesurfer files"""
22

3-
# ruff: noqa: F401
4-
53
from .io import (
64
read_annot,
75
read_geometry,

nibabel/gifti/__init__.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@
1616
gifti
1717
"""
1818

19-
# ruff: noqa: F401
20-
2119
from .gifti import (
2220
GiftiCoordSystem,
2321
GiftiDataArray,

nibabel/parrec.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
#
88
### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ##
99
# Disable line length checking for PAR fragments in module docstring
10-
# flake8: noqa E501
10+
# noqa: E501
1111
"""Read images in PAR/REC format
1212
1313
This is yet another MRI image format generated by Philips scanners. It is an

nibabel/streamlines/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
"""Multiformat-capable streamline format read / write interface"""
2-
# ruff: noqa: F401
32

43
import os
54
import warnings

nibabel/testing/__init__.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88
### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ##
99
"""Utilities for testing"""
1010

11-
# ruff: noqa: F401
12-
1311
from __future__ import annotations
1412

1513
import os

pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,9 @@ ignore = [
133133
"ISC002",
134134
]
135135

136+
[tool.ruff.lint.per-file-ignores]
137+
"__init__.py" = ["F401"]
138+
136139
[tool.ruff.format]
137140
quote-style = "single"
138141

0 commit comments

Comments
 (0)