Skip to content

Commit 12e1422

Browse files
authored
Merge pull request #46 from jhlegarreta/AdoptFlake8ICNRules
STYLE: Enforce `flake8` import conventions
2 parents 8936e6d + 6fd01a3 commit 12e1422

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pyproject.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,7 @@ select = [
146146
"W",
147147
"B",
148148
"I",
149+
"ICN",
149150
]
150151
ignore = [
151152
"E203"
@@ -163,6 +164,9 @@ inline-quotes = "double"
163164
[tool.ruff.format]
164165
quote-style = "double"
165166

167+
[tool.ruff.lint.flake8-import-conventions.extend-aliases]
168+
"nibabel" = "nb"
169+
166170
[tool.ruff.lint.isort]
167171
known-first-party=["nifreeze"]
168172

0 commit comments

Comments
 (0)