onnxruntime/tools/ci_build/github/python_checks/readme.md
Edward Chen baf8c39a8d
Add Python checks pipeline (#7032)
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.
2021-08-09 10:37:05 -07:00

18 lines
396 B
Markdown

# Python Code Checks
Python code checks are run by this [CI build](../azure-pipelines/python-checks-ci-pipeline.yml).
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`