-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
84 lines (77 loc) · 1.84 KB
/
pyproject.toml
File metadata and controls
84 lines (77 loc) · 1.84 KB
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
[tool.ruff]
line-length = 88
target-version = "py312"
exclude = ["bb/*"]
[tool.ruff.format]
# Use black-compatible formatting
quote-style = "double"
indent-style = "space"
skip-magic-trailing-comma = false
line-ending = "auto"
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"UP", # pyupgrade
]
ignore = [
"E501", # line too long (let ruff handle this)
"W291", # trailing whitespace
"F401", # imported but unused (common for __init__.py re-exports)
"F821", # undefined name (common with dynamic imports)
"B007", # unused loop variable
]
[tool.mypy]
python_version = "3.12"
files = ["home/lib"]
# Start with basic checks - can increase strictness over time
check_untyped_defs = true
disallow_any_generics = false
disallow_incomplete_defs = true
disallow_untyped_calls = false
disallow_untyped_defs = true
ignore_missing_imports = false
no_implicit_optional = false
warn_redundant_casts = false
warn_unused_ignores = false
[[tool.mypy.overrides]]
module = [
"rapidfuzz.*",
]
ignore_missing_imports = true
[tool.pytest.ini_options]
testpaths = ["test"]
python_files = ["test_*.py"]
python_classes = ["Test*"]
python_functions = ["test_*"]
asyncio_mode = "auto"
asyncio_default_fixture_loop_scope = "function"
addopts = [
"--cov=.",
"--cov-report=term-missing:skip-covered",
"--cov-report=html",
"--cov-fail-under=50",
"-v",
]
[tool.coverage.run]
omit = [
"*/test/*",
"*/tests/*",
"**/test_*.py",
"**/conftest.py",
"**/__init__.py",
]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"def __repr__",
"raise AssertionError",
"raise NotImplementedError",
"if __name__ == .__main__.:",
"if TYPE_CHECKING:",
"@abstractmethod",
]