Skip to content

Commit

Permalink
[AIRFLOW-XXX] Add example of running pre-commit hooks on single file (#…
Browse files Browse the repository at this point in the history
…6143)

Or a list of files
  • Loading branch information
kaxil authored and potiuk committed Sep 18, 2019
1 parent 857788e commit 74ee98d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -337,6 +337,9 @@ run pre-commit hooks manually as needed.
*You can skip one or more of the checks by specifying comma-separated list of checks to skip in SKIP variable:*
`SKIP=pylint,mypy pre-commit run --all-files`

*You can run only one mypy checks manually on a single file (or list of files) by running:*
`pre-commit run mypy --files PATH_TO_FILE`. Example: `pre-commit run mypy --files airflow/operators/bash_operator.py`

## Skipping pre-commit hooks

You can always skip running the tests by providing `--no-verify` flag to `git commit` command.
Expand Down

0 comments on commit 74ee98d

Please sign in to comment.