-
-
Notifications
You must be signed in to change notification settings - Fork 98
/
pyproject.toml
100 lines (90 loc) · 1.96 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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
[tool.ruff]
line-length = 88
target-version = "py312"
lint.select = ["ALL"]
lint.ignore = [
# pydocstyle
"D",
# todo comments
"TD",
# fixmes
"FIX",
# Unused function argument
"ARG001",
## breaks with nix-shell
# Shebang should be at the beginning of the file
"EXE005",
"EXE003",
"EXE001",
# Missing type annotation for `self` in method
"ANN101",
# Dynamically typed expressions (typing.Any)
"ANN401",
# Trailing comma missing
"COM812",
# Unnecessary `dict` call (rewrite as a literal)
"C408",
# Found commented-out code
"ERA001",
# Boolean-typed positional argument in function definition
"FBT001",
# Logging statement uses f-string
"G004",
# disabled on ruff's recommendation as causes problems with the formatter
"ISC001",
# Use of `assert` detected
"S101",
# `subprocess` call: check for execution of untrusted input
"S603",
# Starting a process with a partial executable path
"S607",
# Boolean default positional argument in function definition
"FBT002",
# Too many statements
"PLR0915",
# Too many arguments in function definition
"PLR0913",
"PLR0912", # Too many branches
# $X is too complex
"C901",
"E501", # line too long
"T201", # `print` found
"T203", # `pprint` found
"PLR2004", # Magic value used in comparison
]
# TODO fixes
[tool.ruff.lint.per-file-ignores]
"modules/prometheus/nixos-exporter/prometheus_nixos_exporter/__main__.py" = [
"PTH115",
"PTH118",
"PTH120"
]
"hydra-packet-importer/import.py" = [
"ANN001",
"PTH123",
"BLE001",
"S110"
]
"build/pluto/prometheus/exporters/**.py" = [
"ANN"
]
"build/datadog/hydra.py" = [
"ANN001",
"ARG002",
"INP001",
"S113",
]
"build/pluto/prometheus/exporters/channel-exporter.py" = [
"BLE001",
"PTH123"
]
"build/pluto/prometheus/exporters/hydra-queue-runner-reexporter.py" = [
"TRY300",
"N806",
"A002",
"PTH123",
"S113"
]
[[tool.mypy.overrides]]
module = "packet.*"
ignore_missing_imports = true