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. |
||
|---|---|---|
| .. | ||
| readme.md | ||
| requirements.txt | ||
Python Code Checks
Python code checks are run by this CI build. Here are instructions on how to run them manually.
Prerequisites
Install requirements.
From the repo root, run:
$ python -m pip install -r tools/ci_build/github/python_checks/requirements.txt
Flake8
From the repo root, run:
$ python -m flake8 --config .flake8