forked from python/mypy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.cfg
59 lines (56 loc) · 1.43 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
48
49
50
51
52
53
54
55
56
57
58
59
[flake8]
max-line-length = 99
noqa-require-code = True
# typeshed and unit test fixtures have .pyi-specific flake8 configuration
exclude =
# from .gitignore: directories, and file patterns that intersect with *.py
build,
bin,
lib,
include,
@*,
env,
docs/build,
out,
.venv,
.mypy_cache,
.git,
.cache,
# Sphinx configuration is irrelevant
docs/source/conf.py,
mypyc/doc/conf.py,
# tests have more relaxed styling requirements
# fixtures have their own .pyi-specific configuration
test-data/*,
mypyc/test-data/*,
# typeshed has its own .pyi-specific configuration
mypy/typeshed/*,
.tox
.eggs
.Python
# Things to ignore:
# E203: conflicts with black
# E501: conflicts with black
# W601: has_key() deprecated (false positives)
# E402: module level import not at top of file
# B006: use of mutable defaults in function signatures
# B007: Loop control variable not used within the loop body.
# B011: Don't use assert False
# B023: Function definition does not bind loop variable
# E741: Ambiguous variable name
extend-ignore = E203,E501,W601,E402,B006,B007,B011,B023,E741
[coverage:run]
branch = true
source = mypy
parallel = true
[coverage:report]
show_missing = true
skip_covered = True
omit = mypy/test/*
exclude_lines =
\#\s*pragma: no cover
^\s*raise AssertionError\b
^\s*raise NotImplementedError\b
^\s*return NotImplemented\b
^\s*raise$
^if __name__ == ['"]__main__['"]:$