Skip to content

Commit 4d7ef1c

Browse files
authored
Extend Pylint checks (#358)
1 parent b33aa29 commit 4d7ef1c

2 files changed

Lines changed: 10 additions & 1 deletion

File tree

pyproject.toml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,15 @@ profile = "black"
8383
multi_line_output = 3
8484

8585
[tool.pylint.MASTER]
86+
load-plugins = [
87+
"pylint.extensions.bad_builtin",
88+
"pylint.extensions.code_style",
89+
"pylint.extensions.docparams",
90+
"pylint.extensions.docstyle",
91+
"pylint.extensions.empty_comment",
92+
"pylint.extensions.overlapping_exceptions",
93+
"pylint.extensions.typing",
94+
]
8695
ignore= [
8796
"tests"
8897
]

src/wled/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -491,7 +491,7 @@ def __init__(self, data: dict) -> None:
491491
# Check if all elements are in the passed dict, else raise an Error
492492
if any(
493493
k not in data and data[k] is not None
494-
for k in ["effects", "palettes", "info", "state"]
494+
for k in ("effects", "palettes", "info", "state")
495495
):
496496
raise WLEDError("WLED data is incomplete, cannot construct device object")
497497
self.update_from_dict(data)

0 commit comments

Comments
 (0)