|
@@ -51,16 +51,14 @@ select = [
|
|
|
"F", # pyflakes
|
|
"F", # pyflakes
|
|
|
"E", # pycodestyle
|
|
"E", # pycodestyle
|
|
|
"W", # pycodestyle warnings
|
|
"W", # pycodestyle warnings
|
|
|
-# "S", # flake8-bandit
|
|
|
|
|
|
|
+ "S", # flake8-bandit
|
|
|
"B", # flake8-bugbear
|
|
"B", # flake8-bugbear
|
|
|
"A", # flake8-builtins
|
|
"A", # flake8-builtins
|
|
|
]
|
|
]
|
|
|
-ignore = [
|
|
|
|
|
- "E501", # Duplicate of format rule, hits on tests
|
|
|
|
|
-]
|
|
|
|
|
|
|
+ignore = ["E501"] # long lines (checked by ruff format)
|
|
|
|
|
|
|
|
[tool.ruff.lint.per-file-ignores]
|
|
[tool.ruff.lint.per-file-ignores]
|
|
|
-"tests/**.py" = ["B011", "B028"]
|
|
|
|
|
|
|
+"tests/**.py" = ["B011", "B028", "S101"]
|
|
|
|
|
|
|
|
[tool.uv.build-backend]
|
|
[tool.uv.build-backend]
|
|
|
module-name = ["custom_components.tuya_local", "util"]
|
|
module-name = ["custom_components.tuya_local", "util"]
|