-
-
Notifications
You must be signed in to change notification settings - Fork 32
Expand file tree
/
Copy pathpyproject.toml
More file actions
86 lines (72 loc) · 1.52 KB
/
pyproject.toml
File metadata and controls
86 lines (72 loc) · 1.52 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
85
86
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "wikidict"
dynamic = ["version"]
[tool.hatch.version]
path = "wikidict/__init__.py"
[tool.hatch.build.targets.sdist]
only-include = [
"wikidict",
]
[tool.hatch.build.targets.wheel]
packages = [
"wikidict",
]
[tool.coverage.report]
exclude_also = [
"except Exception:",
"except KeyboardInterrupt:",
'if "CI" in os.environ:',
"if DEBUG_",
'if __name__ == "__main__":',
"if TYPE_CHECKING:",
]
[tool.mypy]
# Ensure we know what we do
warn_redundant_casts = true
warn_unused_ignores = true
warn_unused_configs = true
# Imports management
ignore_missing_imports = true
follow_imports = "normal"
# Ensure full coverage
disallow_untyped_defs = true
disallow_incomplete_defs = true
disallow_untyped_calls = true
# Restrict dynamic typing (a little)
# e.g. `x: List[Any]` or x: List`
disallow_any_generics = true
# From functions not declared to return Any
warn_return_any = true
[tool.pytest.ini_options]
addopts = """
--strict-markers
-vvv
"""
markers = """
webtest: an internet connection is required for that test.
"""
[tool.ruff]
exclude = [
"data",
"docs",
".git",
".github",
".mypy_cache",
".pytest_cache",
".ruff_cache",
"venv",
]
line-length = 120
indent-width = 4
target-version = "py313"
[tool.ruff.lint]
fixable = ["ALL"]
extend-select = ["F", "I", "U"]
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
skip-magic-trailing-comma = false
line-ending = "auto"