cache-dir = "~/.cache/ruff" indent-width = 4 line-length = 79 target-version = "py312" [lint] select = ["ALL"] ignore = [ "BLE001", "COM812", "D2", "D4", "EM101", # Exception must not use a string literal, assign to variable first "EM102", # Exception must not use an f-string literal, assign to variable first "S603", "T201", "TRY003" # "UP020" ] # BLE001 - Do not catch blind exception: `Exception` # C901 - `outside_temperature` is too complex (12 > 10) # COM812 - Trailing comma missing # D101 - Missing docstring in public class # D102 - Missing docstring in public method # D200 - One-line docstring should fit on one line # D202 - No blank lines allowed after function docstring # D203 - 1 blank line required before class docstring # D205 - 1 blank line required between summary line and description # D212 - Multi-line docstring summary should start at the first line # D400 - First line should end with a period # D401 - First line of docstring should be in imperative mood # D403 - First word of the first line should be capitalized: `str` -> `Str` # D415 - First line should end with a period, question mark, or exclamation point # ERA001 - Found commented-out code # FBT001 - Boolean-typed positional argument in function definition # FBT002 - Boolean default positional argument in function definition # INP001 - File `beinc_weechat.py` is part of an implicit namespace package. Add an `__init__.py` # PTH100 - `os.path.abspath()` should be replaced by `Path.resolve()` # PTH109 - `os.getcwd()` should be replaced by `Path.cwd()` # PTH111 - `os.path.expanduser()` should be replaced by `Path.expanduser()` # PTH123 - `open()` should be replaced by `Path.open()` # PLR0912 - Too many branches (13 > 12) # PLR0913 - Too many arguments in function definition (6 > 5) # PLR2004 - Magic value used in comparison, consider replacing `200` with a constant variable # RUF012 - Mutable class attributes should be annotated with `typing.ClassVar` # RUF013 - PEP 484 prohibits implicit `Optional` # S101 - Use of `assert` detected # S308 - Use of `mark_safe` may expose cross-site scripting vulnerabilities # S603 - `subprocess` call: check for execution of untrusted input # T201 - `print` found # TRY003 - Avoid specifying long messages outside the exception class # TRY300 - Consider moving this statement to an `else` block # UP020 - Use builtin `open` # Allow fix for all enabled rules (when `--fix`) is provided. fixable = ["ALL"] unfixable = [] [format] # Like Black, use double quotes for strings. quote-style = "single" # Like Black, indent with spaces, rather than tabs. indent-style = "space" # Like Black, respect magic trailing commas. skip-magic-trailing-comma = true # Like Black, automatically detect the appropriate line ending. line-ending = "lf" # Enable auto-formatting of code examples in docstrings. Markdown, # reStructuredText code/literal blocks and doctests are all supported. # # This is currently disabled by default, but it is planned for this # to be opt-out in the future. docstring-code-format = false # Set the line length limit used when formatting code snippets in # docstrings. # # This only has an effect when the `docstring-code-format` setting is # enabled. docstring-code-line-length = "dynamic" [lint.flake8-quotes] inline-quotes = "single" [lint.isort] split-on-trailing-comma = false