-
Notifications
You must be signed in to change notification settings - Fork 612
/
.flake8
31 lines (29 loc) · 1.08 KB
/
.flake8
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
[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