Skip to content

Commit c4a1ecc

Browse files
committed
add PLE ruleset
1 parent 290dcae commit c4a1ecc

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

flogin/errors.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class PluginNotInitialized(PluginException):
1111
r"""This is raised when you try to access something that needs data from the initialize method, and it hasn't been called yet."""
1212

1313
def __init__(self) -> None:
14-
return super().__init__("The plugin hasn't been initialized yet")
14+
super().__init__("The plugin hasn't been initialized yet")
1515

1616

1717
class EnvNotSet(PluginException):

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ select = [
7777
"ANN", # https://docs.astral.sh/ruff/rules/#flake8-annotations-ann
7878
"PGH", # https://docs.astral.sh/ruff/rules/#pygrep-hooks-pgh
7979
"RET", # https://docs.astral.sh/ruff/rules/#flake8-return-ret
80+
"PLE", # https://docs.astral.sh/ruff/rules/#error-e_1
8081
]
8182
ignore = [
8283
"F403", # https://docs.astral.sh/ruff/rules/undefined-local-with-import-star/#undefined-local-with-import-star-f403

0 commit comments

Comments
 (0)