-
-
Notifications
You must be signed in to change notification settings - Fork 693
Expand file tree
/
Copy pathruff.toml
More file actions
29 lines (22 loc) · 679 Bytes
/
ruff.toml
File metadata and controls
29 lines (22 loc) · 679 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
# ruff.toml
# Support Python 3.8 and above
target-version = "py38"
# Match Black's default line length
line-length = 88
# Ignore testdata files
extend-exclude = ["**/testdata/**", "testdata"]
[lint]
# Enable Pyflakes (F) and pycodestyle (E, W) for standard linting,
# and isort (I) for import sorting
select = ["F", "E", "W", "I"]
# Like Black, allow certain violations that may conflict with its formatting
ignore = ["E501"]
[lint.isort]
# Matches isort's profile = "black" behavior
combine-as-imports = true
force-single-line = false
[format]
# The Ruff formatter defaults to Black's style
quote-style = "double"
indent-style = "space"
skip-magic-trailing-comma = false