78 lines
1.5 KiB
INI
78 lines
1.5 KiB
INI
# https://gitlab.com/pycqa/flake8/-/issues/428
|
|
[flake8]
|
|
max-complexity = 10
|
|
max-line-length = 110
|
|
j = 0
|
|
format = pylint
|
|
doctests = true
|
|
ignore =
|
|
# this entirely overrides the default ignore list
|
|
# see https://flake8.pycqa.org/en/latest/user/violations.html
|
|
|
|
# conflicts with black formatter
|
|
E203,
|
|
|
|
# allow this since PyCharm likes to format it this way and it does not really hurt
|
|
E126,
|
|
E127,
|
|
|
|
# ignore this since we adopted the newer "[W504] line break after binary operator"
|
|
W503
|
|
|
|
[mutmut]
|
|
paths_to_mutate=pyrate/
|
|
runner=bash -c "mypy pyrate/ && pytest -x --assert=plain"
|
|
tests_dir=tests/
|
|
|
|
# waits for https://github.com/python/mypy/issues/5205
|
|
[mypy]
|
|
check_untyped_defs = True
|
|
no_implicit_optional = True
|
|
warn_redundant_casts = True
|
|
warn_unused_ignores = True
|
|
warn_return_any = True
|
|
strict_equality = True
|
|
plugins = numpy.typing.mypy_plugin
|
|
|
|
# Below are any MyPy ignores:
|
|
|
|
[mypy-pandas.*]
|
|
ignore_missing_imports = True
|
|
|
|
[mypy-matplotlib.*]
|
|
ignore_missing_imports = True
|
|
|
|
[mypy-scipy.*]
|
|
ignore_missing_imports = True
|
|
|
|
[mypy-geopy.*]
|
|
ignore_missing_imports = True
|
|
|
|
[mypy-osgeo.*]
|
|
ignore_missing_imports = True
|
|
|
|
[mypy-shapely.*]
|
|
ignore_missing_imports = True
|
|
|
|
[mypy-geojson.*]
|
|
ignore_missing_imports = True
|
|
|
|
[mypy-rasterio.*]
|
|
ignore_missing_imports = True
|
|
|
|
[mypy-tqdm.*]
|
|
ignore_missing_imports = True
|
|
|
|
[mypy-cartopy.crs.*]
|
|
ignore_missing_imports = True
|
|
|
|
[mypy-h5py.*]
|
|
ignore_missing_imports = True
|
|
|
|
[mypy-cv2.*]
|
|
ignore_missing_imports = True
|
|
|
|
# Required for the scripts
|
|
[mypy-visualize_earth_graph.*]
|
|
ignore_missing_imports = True
|