IAP GITLAB

Skip to content
Snippets Groups Projects
setup.cfg 1.31 KiB
Newer Older
[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