mirror of https://github.com/tensorflow/addons.git
32 lines
1.1 KiB
INI
32 lines
1.1 KiB
INI
[flake8]
|
|
|
|
ignore =
|
|
# defaults flake8 ignores
|
|
E121,E123,E126,E226,E24,E704,W503,W504
|
|
# whitespace before ':'
|
|
# https://black.readthedocs.io/en/stable/the_black_code_style.html#slices
|
|
E203
|
|
# missing whitespace after ','
|
|
# black takes care of that. Sometimes it may
|
|
# add a comma at the end of lists.
|
|
E231
|
|
# Line too long
|
|
# We use black, no need to enforce line length
|
|
E501
|
|
# lowercase ... imported as non lowercase
|
|
# Useful to ignore for "import keras.backend as K"
|
|
N812
|
|
|
|
per-file-ignores =
|
|
# imported but unused in __init__.py, that's ok.
|
|
**/__init__.py:F401
|
|
# import not at top okay due to TF installation check
|
|
tensorflow_addons/__init__.py:F401,E402
|
|
# function name should be lowercase
|
|
tensorflow_addons/image/utils.py:N802
|
|
tensorflow_addons/image/tests/utils_test.py:N802
|
|
tensorflow_addons/image/tests/color_ops_test.py:N802
|
|
tensorflow_addons/optimizers/tests/conditional_gradient_test.py:N802
|
|
# variable ... in function should be lowercase
|
|
tensorflow_addons/callbacks/tests/time_stopping_test.py:N806
|