annotated what the rule does

Signed-off-by: bigcat88 <bigcat88@icloud.com>
This commit is contained in:
bigcat88 2025-01-03 08:31:00 +02:00
parent 8fefe02cd1
commit c2bf857966
No known key found for this signature in database
GPG Key ID: 1F0BF0EC3CF22721

View File

@ -1,17 +1,16 @@
target-version = "py38" target-version = "py39"
# Disable all rules by default # Disable all rules by default
lint.ignore = ["ALL"] lint.ignore = ["ALL"]
# Enable specific rules # Enable specific rules, see all rules here: https://docs.astral.sh/ruff/rules/
lint.select = [ lint.select = [
"S307", # suspicious-eval-usage "S307", # suspicious-eval-usage
"T201", # print-usage "T201", # print-usage
"W", "W",
# The "F" series in Ruff stands for "Pyflakes" rules, which catch various Python syntax errors and undefined names. # The "F" series in Ruff stands for "Pyflakes" rules, which catch various Python syntax errors and undefined names.
# See all rules here: https://docs.astral.sh/ruff/rules/#pyflakes-f
"F", "F",
"C408", "C408", # unnecessary dict(), list() or tuple() calls that can be rewritten as empty literals.
] ]
exclude = ["*.ipynb"] exclude = ["*.ipynb"]