diff options
author | Philipp Hörist <philipp@hoerist.com> | 2023-01-29 17:26:10 +0300 |
---|---|---|
committer | Philipp Hörist <philipp@hoerist.com> | 2023-01-29 17:57:38 +0300 |
commit | c40ec07fdf0a5547d9c4797ef621ab290c2bee69 (patch) | |
tree | 212aa9539b2724ef3af712b98285e82ce282fa07 /pyproject.toml | |
parent | eb5ce03b3512e8e8b412250128d3a9664dc4387d (diff) |
ci: Update lint configs
Diffstat (limited to 'pyproject.toml')
-rw-r--r-- | pyproject.toml | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/pyproject.toml b/pyproject.toml index 1b1dfebb1..93c4acbe6 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -190,14 +190,27 @@ ignore = [ "N806", # Variable should be lower case "N817", # CamelCase imported as acronym "N818", # Exception name should be named with an Error suffix + "PLR2004",# Magic value used in comparison, consider replacing x with a constant variable "RUF001", # AmbiguousUnicodeCharacterString "RUF002", # AmbiguousUnicodeCharacterDocstring "RUF003", # AmbiguousUnicodeCharacterComment + "RUF005", # Consider x instead of concatenation "RUF100", # Unused `noqa` directive "S101", # Use of `assert` detected + "S110", # `try`-`except`-`pass` detected, consider logging the exception + "S324", # Probable use of insecure hash functions "SIM102", # Use a single `if` statement instead of nested `if` statements "SIM105", # Use `contextlib.suppress(Exception)` instead of try-except-pass + "SIM108", # Use ternary operator + "SIM115", # Use context handler for opening files + "SIM201", # Use x instead of not x + "SIM212", # Use `value if value else ''` instead of `'' if not value else value` + "SIM300", # Yoda conditions are discouraged use x instead "UP007", # Use X | Y for type annotations + "UP030", # Use implicit references for positional format fields + "UP031", # Use format specifiers instead of percent format + "UP032", # Use f-string instead of `format` call + "UP034", # Avoid extraneous parentheses ] exclude = [ |