-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathpyproject.toml
80 lines (73 loc) · 1.29 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
[build-system]
requires = [
"setuptools>=42",
"wheel",
]
build-backend = "setuptools.build_meta"
[tool.black]
line-length = 88
[tool.mypy]
strict = true
ignore_missing_imports = true
exclude = "tests"
[tool.len8]
exclude = ["tests", "analytix/ux.py"]
code-length = 88
[tool.coverage.report]
omit = ["analytix/__init__.py", "analytix/__main__.py", "analytix/types.py", "analytix/ux.py"]
exclude_lines = [
"if TYPE_CHECKING:",
"if t.TYPE_CHECKING:",
"raise NotImplementedError",
"return NotImplemented",
"except KeyboardInterrupt as exc",
"except ImportError:",
# These are run depending on current Python version
"from dateutil.parser import parse as du_parse",
"du_parse = dt.datetime.fromisoformat",
]
[tool.ruff]
show-fixes = true
target-version = "py38"
[tool.ruff.lint]
extend-select = [
"B",
"BLE",
"C4",
"COM",
# "CPY",
"E",
"ERA",
"FBT",
"FLY",
"G",
"I",
"ICN",
"INP",
"ISC",
"LOG",
"N",
"NPY",
"PERF",
"PGH",
"PIE",
# "PTH",
"PYI",
"Q",
"RET",
"RSE",
"RUF",
"S",
"SIM",
"SLF",
"SLOT",
"T10",
"T20",
"TCH",
"TID",
"UP",
"YTT",
]
ignore = ["E402", "B905", "N818", "S101"]
[tool.ruff.lint.isort]
force-single-line = true