-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.cfg
47 lines (37 loc) · 1.27 KB
/
setup.cfg
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
# -----------------------------------------------------------------------------
# pytest
# -----------------------------------------------------------------------------
[tool:pytest]
testpaths = tests
addopts = --verbose
[aliases]
test = pytest
# -----------------------------------------------------------------------------
# flake8
# -----------------------------------------------------------------------------
[flake8]
ignore = E203, E302, E501, W503, C901
exclude = build
# -----------------------------------------------------------------------------
# isort
# -----------------------------------------------------------------------------
[isort]
profile = black
# Don't split "import" and "from".
force_sort_within_sections = true
# -----------------------------------------------------------------------------
# mypy
# -----------------------------------------------------------------------------
[mypy]
python_version = 3.10
check_untyped_defs = True
no_implicit_optional = True
disallow_untyped_defs = True
follow_imports = skip
strict_optional = True
warn_redundant_casts = True
warn_unused_ignores = False
ignore_missing_imports = True
exclude = ./examples/object_detection/model.py
# mypy will complain if we store a new type in a pre-declared var
# This is not very pythonic