forked from pdbpp/pdbpp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
68 lines (58 loc) · 1.27 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
[tool.ruff]
line-length = 88
target-version = "py39"
[tool.ruff.lint]
select = [
# pycodestyle
"E",
# Pyflakes
"F",
# pyupgrade
"UP",
# flake8-bugbear
"B",
# flake8-simplify
"SIM",
# isort
"I",
]
ignore = ["F401", "E722"]
[tool.ruff.lint.per-file-ignores]
"testing/**" = ["S", "B011", "B904", "E501"]
"src/pdbpp.py" = [
"B019" # lru cache can lead to memory leaks. TODO: stop silencing the error and fix it
]
"src/pdbpp_utils/_version.py" = ["UP"]
[tool.pytest.ini_options]
addopts = "--cov --cov-branch --no-cov-on-fail -ra --tb short -p pytester"
testpaths = ["testing"]
[tool.setuptools_scm]
write_to = "src/pdbpp_utils/_version.py"
[tool.mypy]
# Error output
show_column_numbers = true
show_error_codes = true
show_error_context = true
show_traceback = true
pretty = true
check_untyped_defs = true
# Warnings
warn_no_return = true
warn_redundant_casts = true
warn_unreachable = true
strict_equality = true
no_implicit_optional = true
warn_unused_configs = true
files = ["src", "testing"]
[[tool.mypy.overrides]]
ignore_missing_imports = true
module = [
"fancycompleter"
]
[tool.coverage.run]
branch = true
source = ["pdbpp", "testing"]
[tool.coverage.paths]
source = ["src", "*/site-packages"]
[tool.ruff.lint.isort]
known-first-party = ["pdbpp", "pdbpp_utils"]