diff --git a/ruff.toml b/ruff.toml index 3be108e..37c5b6a 100644 --- a/ruff.toml +++ b/ruff.toml @@ -37,16 +37,23 @@ target-version = "py312" [lint] # Enable Pyflakes (`F`) and a subset of the pycodestyle (`E`) codes by default. -select = ["E4", "E7", "E9", "F"] -extend-select = ["S", "B", "A", "Q", "N", "D1", "PD", "UP", "RUF1"] +# select = ["E4", "E7", "E9", "F"] +select = ["E", "W", "F"] +extend-select = ["S", "B", "A", "Q", "N", "D1", "PD", "UP", "EXE", "FIX", "FA102", "RUF1"] # Ignore the following rules: +# - E501: line-too-long +# Line too long # - B006: mutable-argument-default # Do not use mutable data structures for argument defaults # - UP015: redundant-open-modes # Unnecessary mode argument # - UP045: non-pep604-annotation-optional # Use X | None for type annotations -ignore = ["B006", "UP015", "UP045"] +# - EXE001: shebang-not-executable +# Shebang is present but file is not executable (Unix only) +# - EXE002: shebang-missing-executable-file +# The file is executable but no shebang is present (Unix only) +ignore = ["E501", "B006", "UP015", "UP045", "EXE001", "EXE002"] # Allow fix for all enabled rules (when `--fix`) is provided. fixable = ["ALL"]