forked from GitGuardian/ggshield
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
51 lines (45 loc) · 1.21 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
[tool.black]
target-version = ['py36']
line-length = 88
exclude = '/(\.eggs|\.git|\.hg|\.mypy_cache|\.nox|\.tox|\.venv|\.svn|_build|buck-out|build|dist|venv|snapshots|_snap)/'
[tool.pytest.ini_options]
addopts = "--pdbcls=IPython.terminal.debugger:Pdb --durations=10 --durations-min=3.0 --tb=short"
python_files = ["tests.py", "test_*.py", "*_tests.py"]
testpaths = ["tests/"]
[tool.isort]
profile = "black"
lines_after_imports = 2
[tool.coverage.report]
exclude_lines = [
"@abstractmethod",
"if TYPE_CHECKING:",
"pragma: no cover",
"raise NotImplementedError",
"assert False"]
omit = ["tests/*"]
fail_under = 80
show_missing = true
[tool.coverage.run]
source = ["."]
omit = [".venv/*"]
[tool.mypy]
python_version = "3.9"
warn_return_any = true
check_untyped_defs = true
disallow_incomplete_defs = true
disallow_untyped_defs = true
follow_imports = "silent"
ignore_missing_imports = true
no_implicit_optional = true
strict_equality = true
strict_optional = true
warn_incomplete_stub = true
warn_redundant_casts = true
warn_unreachable = true
warn_unused_configs = true
warn_unused_ignores = true
plugins = ["marshmallow_dataclass.mypy"]
files = "ggshield"
[[tool.mypy.overrides]]
module = ["tests.*"]
ignore_errors = true