onnxruntime/.flake8
Justin Chu fdce4fa6af
Format all python files under onnxruntime with black and isort (#11324)
Description: Format all python files under onnxruntime with black and isort.

After checking in, we can use .git-blame-ignore-revs to ignore the formatting PR in git blame.

#11315, #11316
2022-04-26 09:35:16 -07:00

25 lines
665 B
INI

[flake8]
max-line-length = 120
per-file-ignores =
__init__.py:F401
format = [flake8 PEP8 ERROR] %(path)s:%(row)d:%(col)d: %(code)s %(text)s
exclude =
# ignore default build directory
./build,
# ignore external dependency files
./cmake/external,
# TODO enable
./docs/python,
# ignore generated flatbuffers code
./onnxruntime/core/flatbuffers/ort_flatbuffers_py,
# TODO enable
./onnxruntime/core/providers/nuphar,
# TODO enable
./onnxruntime/python/tools,
# ignore test code for now
./onnxruntime/test,
# TODO enable
./orttraining,
# ignore server code for now
./server,
ignore = W503, E203