[AIRFLOW-XXX] Add example of running pre-commit hooks on single file (#6143)
Or a list of files
This commit is contained in:
Родитель
857788e305
Коммит
74ee98d2b6
|
@ -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.
|
||||
|
|
Загрузка…
Ссылка в новой задаче