Skip to content

Commit 2127fd3

Browse files
committed
fix: INP001 directories
1 parent ae7cb50 commit 2127fd3

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

pyproject.toml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,9 @@ pythonVersion = "3.10"
8282
reportDuplicateImport = true
8383

8484
[tool.ruff]
85-
namespace-packages = [] # for INP rule, suppress on these directories
85+
# Ignore INP001 on these directories
86+
# The directories that do not contain s, r, and c are already ignored.
87+
namespace-packages = ["scripts"]
8688
extend-exclude = [
8789
"src/ml_project/_version.py", # CHANGE
8890
]
@@ -163,7 +165,8 @@ ignore = [
163165
"__init__.py" = [
164166
"F401", # Ignore seemingly unused imports (they're meant for re-export)
165167
]
166-
"[!s][!r][!c]*/**" = ["INP001"] # Implicit namespace package (no __init__.py) ignored not under src/
168+
# Directories that do not contain s, r, and c
169+
"[!s][!r][!c]*/**" = ["INP001"] # Implicit namespace package (no __init__.py)
167170

168171
[tool.ruff.lint.pydocstyle]
169172
convention = "google"

0 commit comments

Comments
 (0)