Newer
Older
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
[flake8]
# use a slightly longer line to be consistent with black
max-line-length = 88
# E231 is missing whitespace after a comma
# this contradicts the black formatting rules
# and therefore creates spurious errors
ignore = E231
# we set various directories we want to exclude
exclude =
# Don't bother checking in cache directories
__pycache__
[isort]
# use parenthesis for multi-line imports
use_parentheses = true
[mypy]
# the primary Python version
python_version = 3.7
# allow returning Any
# this creates excessive errors when using libraries
# that don't have MyPy typing support
warn_return_any = False
# don't allow untyped functions
disallow_untyped_defs = True
# warn if any part of this config is mispelled
warn_unused_configs = True
# warn for missing type information
warn_incomplete_stub = True
# warn us if we don't return from a function explicitly
warn_no_return = True
# use incremental typing to speed things up
incremental = True
# show error contexts
show_error_context = True
# and show the column numbers for errors
show_column_numbers = True
# ignore missing types for setuptools
[mypy-setuptools.*]
ignore_missing_imports = True
# ignore missing types for numpy
[mypy-numpy.*]
ignore_missing_imports = True
# ignore missing types for matplotlib
[mypy-matplotlib.*]
ignore_missing_imports = True