-
Notifications
You must be signed in to change notification settings - Fork 2
/
pyproject.toml
66 lines (61 loc) · 1.33 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
63
64
65
66
# NOTE: You have to use single-quoted strings in TOML for regular expressions.
# It's the equivalent of r-strings in Python. Multiline strings are treated as
# verbose regular expressions by Black. Use [ ] to denote a significant space
# character.
[tool.ruff]
target-version = "py38"
line-length = 120
[tool.ruff.lint]
# Rules were ported over from the legacy flake8 settings for parity
# All the rules can be found here: https://beta.ruff.rs/docs/rules/
select = [
"B",
"C",
"E",
"F",
"G",
"I",
"U",
"W",
"B003",
"B006",
"B007",
]
ignore = [
# From legacy flake8 settings
# Ignore:
# - black-incompatible options: E203
# - bugbear overlap: E722
# - style options: W2,W3,W50,E111,E114,E117,E2,E3,E5,E74
# - Unnecessary dict call: C408
# - complex-structure : C901
# - raise-without-from-inside-except: B904
"E203",
"W2",
"W3",
"W50",
"E111",
"E114",
"E117",
"E2",
"E3",
"E5",
"E74",
"E722",
"C408",
"C901",
"B904",
]
unfixable = [
# Don't touch unused imports
"F401",
]
[tool.ruff.lint.flake8-tidy-imports]
ban-relative-imports = "all"
[tool.ruff.format]
# Enable preview style formatting.
quote-style = "preserve"
[tool.vulture]
ignore_decorators = ["@task"]
ignore_names = ["test_*", "Test*"]
paths = ["tasks"]