[AIRFLOW-XXX] Add example of running pre-commit hooks on single file (#6143)

Or a list of files
This commit is contained in:
Kaxil Naik 2019-09-18 13:04:32 +01:00 коммит произвёл Jarek Potiuk
Родитель 857788e305
Коммит 74ee98d2b6
1 изменённых файлов: 3 добавлений и 0 удалений

Просмотреть файл

@ -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.