-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpyproject.toml
45 lines (35 loc) · 864 Bytes
/
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
[tool.ruff]
line-length = 120
cache-dir = ".caches/.ruff"
[tool.ruff.format]
# behave like Black
quote-style = "double"
indent-style = "space"
skip-magic-trailing-comma = false
line-ending = "auto"
[tool.ruff.lint]
# see https://beta.ruff.rs/docs/rules/
select = ["B", "C90", "E", "F", "N", "PT", "W", "Q", "UP", "I"]
[tool.ruff.lint.mccabe]
max-complexity = 10
[tool.ruff.lint.isort]
known-first-party = ["conrad_relaycard"]
[tool.mypy]
ignore_missing_imports = true
strict = true
exclude = ["test*", "setup"]
cache_dir = ".caches/.mypy"
[tool.pytest.ini_options]
cache_dir = ".caches/.pytest"
[tool.coverage.run]
branch = true
parallel = true
data_file = ".caches/.coverage"
[tool.coverage.paths]
source = ["conrad_relaycard"]
[tool.coverage.report]
# goal is ~100%
fail_under = 65
show_missing = true
precision = 2
omit = ["*__init__.py", "setup.py"]