Repository navigation
Expand file tree
/
Copy pathruff.toml
More file actions
48 lines (46 loc) · 1.55 KB
/
Copy pathruff.toml
File metadata and controls
48 lines (46 loc) · 1.55 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
target-version = "py312"
[format]
preview = true
[lint]
select = [
# https://docs.astral.sh/ruff/rules/#flake8-bugbear-b
# https://github.com/PyCQA/flake8-bugbear
"B",
# https://docs.astral.sh/ruff/rules/#flake8-blind-except-ble
# https://github.com/elijahandrews/flake8-blind-except
"BLE",
# https://docs.astral.sh/ruff/rules/#flake8-comprehensions-c4
# https://github.com/adamchainz/flake8-comprehensions
"C4",
# https://docs.astral.sh/ruff/rules/#error-e
# https://github.com/PyCQA/pycodestyle
"E",
# https://docs.astral.sh/ruff/rules/#pyflakes-f
# https://github.com/PyCQA/pyflakes
"F",
# https://docs.astral.sh/ruff/rules/#isort-i
# https://pycqa.github.io/isort/
"I",
# https://docs.astral.sh/ruff/rules/#flake8-use-pathlib-pth
# https://gitlab.com/RoPP/flake8-use-pathlib
"PTH",
# https://docs.astral.sh/ruff/rules/#ruff-specific-rules-ruf
# Project link is the astral/ruff website, so no external links.
"RUF",
# https://docs.astral.sh/ruff/rules/#flake8-simplify-sim
# https://github.com/MartinThoma/flake8-simplify
"SIM",
# https://docs.astral.sh/ruff/rules/#flake8-tidy-imports-tid
# https://github.com/adamchainz/flake8-tidy-imports
"TID",
# https://docs.astral.sh/ruff/rules/#pyupgrade-up
# https://github.com/asottile/pyupgrade
"UP",
# https://docs.astral.sh/ruff/rules/#warning-w
# https://github.com/PyCQA/pycodestyle
"W",
]
extend-safe-fixes = [
# https://docs.astral.sh/ruff/rules/non-pep585-annotation/
"UP006",
]