-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathruff.toml
More file actions
32 lines (27 loc) · 867 Bytes
/
Copy pathruff.toml
File metadata and controls
32 lines (27 loc) · 867 Bytes
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
# Line and indent config.
line-length = 110
indent-width = 4
# Assume Python 3.12.
target-version = "py312"
# Enable automatic fixes.
fix = true
unsafe-fixes = true
# Format like black.
[format]
quote-style = "double"
indent-style = "space"
skip-magic-trailing-comma = false
line-ending = "auto"
# Enable linting for:
# "UP": pyupgrade https://docs.astral.sh/ruff/rules/#pyupgrade-up
# "F": Pyflakes https://docs.astral.sh/ruff/rules/#pyflakes-f
# "E", "W": pycodestyle https://docs.astral.sh/ruff/rules/#pycodestyle-e-w
# "I": isort https://docs.astral.sh/ruff/rules/#isort-i
# "B": bugbear https://docs.astral.sh/ruff/rules/#flake8-bugbear-b
[lint]
select = ["UP", "F", "E", "W", "I", "B"]
ignore = ["E203", "E501"]
# Isort config.
[lint.isort]
section-order = ["future", "standard-library", "third-party", "first-party", "local-folder"]
order-by-type = false