.agents/skills/ort-lint/SKILL.md
ONNX Runtime uses lintrunner for both C++ (clang-format) and Python (ruff).
pip install -r requirements-lintrunner.txt
lintrunner init
lintrunner -a # auto-fix changed files
lintrunner -a --all-files # auto-fix all files
lintrunner -a path/to/file.py path/to/other_file.cc # auto-fix specific files
lintrunner f --all-files # format Python files only
lintrunner # check without fixing (dry run)
docs/Coding_Conventions_and_Standards.md for full details).clang-format and .clang-tidypyproject.tomlAGENTS.md.lintrunner -a (changed files only) over --all-files unless the user asks for a full sweep.