Skip to content

Commit

Permalink
fix: INP001 directories
Browse files Browse the repository at this point in the history
  • Loading branch information
kiyoon committed Dec 17, 2024
1 parent ae7cb50 commit 2127fd3
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,9 @@ pythonVersion = "3.10"
reportDuplicateImport = true

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

[tool.ruff.lint.pydocstyle]
convention = "google"
Expand Down

0 comments on commit 2127fd3

Please sign in to comment.