forked from BoboTiG/ebook-reader-dict
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
57 lines (49 loc) · 1.07 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
[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 = """
--cov-report=term-missing:skip-covered
--cov=wikidict
--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"