Skip to content

Commit

Permalink
Fix presence of package initializers
Browse files Browse the repository at this point in the history
Add missing package initializers `__init__.py`.
This fixes the violations of the `INP001` ruff rule.
  • Loading branch information
fabcor-maxiv authored and marcus-oscarsson committed Feb 18, 2025
1 parent 48aec4e commit b197ce1
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 13 deletions.
Empty file.
Empty file.
Empty file.
Empty file added mxcubeweb/core/util/__init__.py
Empty file.
14 changes: 1 addition & 13 deletions ruff.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ select = [
"docs/conf.py" = [
"A001",
"DTZ002",
"INP001",
"INP001", # `implicit-namespace-package`: `conf.py` is not meant to be imported
"PLR2044",
]
"mxcubeweb/__init__.py" = [
Expand Down Expand Up @@ -159,9 +159,6 @@ select = [
"TRY003",
"TRY203",
]
"mxcubeweb/core/components/*.py" = [
"INP001",
]
"mxcubeweb/core/components/app.py" = [
"E501",
]
Expand Down Expand Up @@ -280,9 +277,6 @@ select = [
"TRY003",
"TRY203",
]
"mxcubeweb/core/components/user/*.py" = [
"INP001",
]
"mxcubeweb/core/components/user/database.py" = [
"COM812",
"DTZ005",
Expand Down Expand Up @@ -325,9 +319,6 @@ select = [
"RET504",
"S110",
]
"mxcubeweb/core/models/*.py" = [
"INP001",
]
"mxcubeweb/core/models/adaptermodels.py" = [
"FBT003",
"N815",
Expand All @@ -348,9 +339,6 @@ select = [
"COM812",
"FBT003",
]
"mxcubeweb/core/util/*.py" = [
"INP001",
]
"mxcubeweb/core/util/adapterutils.py" = [
"COM812",
"PLR0911",
Expand Down

0 comments on commit b197ce1

Please sign in to comment.