forked from DataDog/datadog-agent
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
78 lines (74 loc) · 1.58 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
67
68
69
70
71
72
73
74
75
76
77
78
# 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 = "py311"
exclude = [
".git",
".github",
".circleci",
"chocolatey",
"Dockerfiles",
"docs",
"google-marketplace",
"omnibus",
"pkg-config",
"releasenotes",
"vendor",
"venv",
"dev",
]
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",
"UP033", # Ignore the lru_cache for now
"UP017", # Ignore datetime.UTC for now
]
unfixable = [
"UP033", # Don't fix the lru_cache yet
"UP017", # Don't fix datetime.UTC yet
]
[tool.ruff.lint.flake8-tidy-imports]
ban-relative-imports = "all"
[tool.ruff.format]
# Enable preview style formatting.
quote-style = "preserve"