-
Notifications
You must be signed in to change notification settings - Fork 142
/
.flake8
25 lines (23 loc) · 653 Bytes
/
.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
[flake8]
select = C,E,F,W
exclude =
./build,
./backends/npu/build,
./backends/mlu/build,
./backends/custom_cpu/build
ignore =
# E, see https://pycodestyle.pycqa.org/en/latest/intro.html#error-codes
E203,
E401,E402,
E501,
E721,E722,E731,E741,
# F, see https://flake8.pycqa.org/en/latest/user/error-codes.html
F405,
F811,F841,
# W, see https://pycodestyle.pycqa.org/en/latest/intro.html#error-codes
W503
per-file-ignores =
# Ignore unused imports in __init__.py
__init__.py: F401
# Ignore undefined variables in CMake config and some dygraph_to_static tests
.cmake-format.py: F821