2023-04-12 18:31:58 +00:00
|
|
|
[tool:pytest]
|
|
|
|
filterwarnings =
|
|
|
|
error
|
|
|
|
ignore::DeprecationWarning
|
|
|
|
ignore::ImportWarning
|
|
|
|
ignore::RuntimeWarning
|
|
|
|
ignore::PendingDeprecationWarning
|
|
|
|
ignore::FutureWarning
|
|
|
|
ignore::UserWarning
|
|
|
|
# Ignore a spurious warning on tf-nightly related to save model changes.
|
|
|
|
ignore:Custom mask layers require a config
|
|
|
|
|
|
|
|
addopts=-vv
|
|
|
|
|
|
|
|
# Do not run tests in the `build` folders
|
|
|
|
norecursedirs = build
|
|
|
|
|
|
|
|
[coverage:report]
|
|
|
|
exclude_lines =
|
|
|
|
pragma: no cover
|
|
|
|
@abstract
|
|
|
|
raise NotImplementedError
|
|
|
|
omit = *_test.py
|
|
|
|
|
|
|
|
[flake8]
|
|
|
|
|
|
|
|
ignore =
|
|
|
|
# Conflicts with black
|
|
|
|
E203
|
|
|
|
# defaults flake8 ignores
|
|
|
|
E121,E123,E126,E226,E24,E704,W503,W504
|
|
|
|
# Function name should be lowercase
|
|
|
|
N802
|
|
|
|
# lowercase ... imported as non lowercase
|
|
|
|
# Useful to ignore for "import keras.backend as K"
|
|
|
|
N812
|
|
|
|
# do not use bare 'except'
|
|
|
|
E722
|
2023-04-19 01:45:30 +00:00
|
|
|
# wildcard imports
|
|
|
|
F401,F403
|
2023-04-21 23:27:04 +00:00
|
|
|
# too many "#"
|
|
|
|
E266
|
2023-04-12 18:31:58 +00:00
|
|
|
|
|
|
|
exclude =
|
|
|
|
*_pb2.py
|
|
|
|
*_pb2_grpc.py
|
|
|
|
|
|
|
|
#imported but unused in __init__.py, that's ok.
|
|
|
|
per-file-ignores = **/__init__.py:F401
|
|
|
|
|
|
|
|
max-line-length = 80
|