Skip to content

Files

Latest commit

 

History

History
20 lines (15 loc) · 851 Bytes

CONTRIBUTING.md

File metadata and controls

20 lines (15 loc) · 851 Bytes

Contributing to pytorch-integration

Python linters

Each patchset uploaded to Gerrit is automatically run against below linters to keep high code quality and consistent look and feel:

pre-commit

To save your time, you can run all above linters automatically on your workstation before committing a change. To do this please run below commands which install pre-commit hook:

pip install pre-commit
pre-commit install

Above commands will install pre-commit hooks which will run all linters against all staged files. If you want to run linters on all files in the repository please run:

pre-commit run --files tests/*