2025-01-03 06:31:00 +00:00
|
|
|
target-version = "py39"
|
2025-01-02 06:44:11 +00:00
|
|
|
|
2024-12-10 03:04:23 +00:00
|
|
|
# Disable all rules by default
|
|
|
|
lint.ignore = ["ALL"]
|
|
|
|
|
2025-01-03 06:31:00 +00:00
|
|
|
# Enable specific rules, see all rules here: https://docs.astral.sh/ruff/rules/
|
2024-12-10 03:04:23 +00:00
|
|
|
lint.select = [
|
|
|
|
"S307", # suspicious-eval-usage
|
2025-01-09 00:05:22 +00:00
|
|
|
"S102", # exec
|
|
|
|
"T", # print-usage
|
2025-01-01 08:08:33 +00:00
|
|
|
"W",
|
2024-12-13 00:29:37 +00:00
|
|
|
# The "F" series in Ruff stands for "Pyflakes" rules, which catch various Python syntax errors and undefined names.
|
|
|
|
"F",
|
2025-01-03 06:31:00 +00:00
|
|
|
"C408", # unnecessary dict(), list() or tuple() calls that can be rewritten as empty literals.
|
2024-12-20 21:24:55 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
exclude = ["*.ipynb"]
|