-
-
Notifications
You must be signed in to change notification settings - Fork 8
/
pyproject.toml
62 lines (61 loc) · 1.38 KB
/
pyproject.toml
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
[tool.ruff]
# https://docs.astral.sh/ruff
show-fixes = true
line-length = 120
indent-width = 4
target-version = "py312"
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
skip-magic-trailing-comma = false
[tool.ruff.lint]
preview = true
select = [
"W", # warning
"F", # pyflakes
"I", # isort
"A", # flake8-builtins
"SIM", # flake8-simplify
"C4", # flake8-comprehensions
"B", # flake8-bugbear
"PIE", # flake8-pie
"RET", # flake8-return
"TID", # flake8-tidy-imports
"CPY", # flake8-copyright
"UP", # pyupgrade
"FURB", # refurb
"PERF", # perflint
"RUF", # ruff-specific rules
]
# https://docs.astral.sh/ruff/rules/
ignore=[
"I001",
"SIM105",
"B904",
"RET502",
"RET503",
"UP031",
"RUF001",
"RUF017",
"FURB118",
]
[tool.ruff.lint.isort]
force-single-line = true
combine-as-imports = true
section-order = ["future", "standard-library", "third-party", "first-party", "local-folder"]
known-first-party = ["ds"]
[tool.isort]
# https://github.com/PyCQA/isort
profile = "black"
line_length = 120
multi_line_output = 3
include_trailing_comma = true
force_grid_wrap = 4
use_parentheses = true
ensure_newline_before_comments = true
lines_between_sections = 0
no_inline_sort = true
combine_as_imports = true
default_section = "THIRDPARTY"
sections = ["FUTURE", "STDLIB", "THIRDPARTY", "FIRSTPARTY", "LOCALFOLDER"]
known_first_party = "ds"