forked from SweepMe/instrument-drivers
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
70 lines (66 loc) · 1.13 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
[tool.ruff]
line-length = 120
src = ["./src/*/"]
select = [
"F",
"E", "W",
"C90",
"I",
"N",
"D",
"UP",
"YTT",
"ANN",
"ASYNC",
"S",
"B",
"A",
"COM",
"C4",
"DTZ",
"T10",
"EM",
"FA",
"ISC",
"ICN",
"G",
"INP",
"PIE",
"T20",
"PT",
"Q",
"RSE",
"RET",
"SLF",
"SIM",
"TID",
"INT",
"ARG",
"PTH",
"TD",
"ERA",
"PD",
"PL",
"FLY",
"NPY",
"RUF",
]
ignore = [
"ANN101", "ANN102",
"D203", "D213", "D406", "D407",
"G004", # logging does not have any built-in keyword string interpolation for the message itself, falling back to %s etc. is crap
"UP015", # open mode should be clearly stated, explicit is better than implicit
]
[tool.ruff.pydocstyle]
convention = "google"
[tool.ruff.per-file-ignores]
"src/*/tests/*" = ["S101", "SLF001", "INP001"] # Tests should use assert, are allowed to test private internals, and aren't a package
[tool.black]
line-length = 120
[tool.mypy]
strict = true
explicit_package_bases = true
mypy_path = "./src/*/"
exclude = [
]
follow_imports = "silent"