mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-05-14 20:48:00 +00:00
This change adds a new pipeline for checking Python code. Currently this pipeline only runs flake8. flake8 is also run as part of the CMake project builds, but we can switch over completely to the new pipeline later. The .flake8 config file was also updated to make it easier to run standalone (flake8 --config ./.flake8) and some Python formatting issues were addressed in files that were not previously scanned.
24 lines
645 B
INI
24 lines
645 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,
|