mirror of
https://github.com/astral-sh/ruff.git
synced 2025-08-03 10:22:24 +00:00
Add pre-commit install
in CONTRIBUTING.md
(#6153)
<!-- Thank you for contributing to Ruff! To help us out with reviewing, please consider the following: - Does this pull request include a summary of the change? (See below.) - Does this pull request include a descriptive title? - Does this pull request include references to any relevant issues? --> ## Summary <!-- What's the purpose of the change? What does it do, and why? --> To enable the git hooks, `pre-commit install` needs to be executed. ## Test Plan <!-- How was it tested? --> N/A
This commit is contained in:
parent
1a85953129
commit
b68f76f0d9
1 changed files with 7 additions and 0 deletions
|
@ -69,6 +69,13 @@ and pre-commit to run some validation checks:
|
|||
pipx install pre-commit # or `pip install pre-commit` if you have a virtualenv
|
||||
```
|
||||
|
||||
You can optionally run the following command to run the validation checks as a git hook
|
||||
when making a commit:
|
||||
|
||||
```shell
|
||||
pre-commit install
|
||||
```
|
||||
|
||||
### Development
|
||||
|
||||
After cloning the repository, run Ruff locally from the repository root with:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue