Skip to content

Commit

Permalink
Add lint rule: missing init file
Browse files Browse the repository at this point in the history
  • Loading branch information
wvanhed committed Oct 17, 2024
1 parent e05d4ba commit 02bd0be
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 11 deletions.
1 change: 1 addition & 0 deletions examples/example.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# ruff: noqa: INP001 # this file is not part of package
import logging
import pprint
from dataclasses import asdict
Expand Down
23 changes: 12 additions & 11 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,17 +36,18 @@ src = ["src"] # consider folder as first-party import

[tool.ruff.lint]
extend-select = [
"B", # flake8-bugbear
"D212", # docstring first line should end with period
"D415", # multiline docstring should start at first line
"FA", # forgotten future annotations
"I", # isort
"N", # pep8 naming
"PTH", # pathlib (instead of os.path)
"S", # bandit, security checks
"SIM", # flake8-simplify, for simplified code
"T2", # flake8-print (avoiding prints)
"W", # warning
"B", # flake8-bugbear
"D212", # docstring first line should end with period
"D415", # multiline docstring should start at first line
"FA", # forgotten future annotations
"I", # isort
"INP001", # missing __init__.py files
"N", # pep8 naming
"PTH", # pathlib (instead of os.path)
"S", # bandit, security checks
"SIM", # flake8-simplify, for simplified code
"T2", # flake8-print (avoiding prints)
"W", # warning
]
ignore = [
"N818", # error suffix in exception names
Expand Down

0 comments on commit 02bd0be

Please sign in to comment.