Closed jiaqima closed 4 months ago
Add pre-commit hooks to streamline local tests.
In addition to common pre-commit hooks, currently only added ruff check and ruff format in .pre-commit-config.yaml. darglint is too slow so it was omitted here.
ruff check
ruff format
.pre-commit-config.yaml
darglint
Also added a boilerplate-ish CONTRIBUTING.md to explain how to use pre-commit hooks.
Description
1. Motivation and Context
Add pre-commit hooks to streamline local tests.
2. Summary of the change
In addition to common pre-commit hooks, currently only added
ruff check
andruff format
in.pre-commit-config.yaml
.darglint
is too slow so it was omitted here.Also added a boilerplate-ish CONTRIBUTING.md to explain how to use pre-commit hooks.