[AIRFLOW-5372] Apache license check runs locally on LICENCE changes
Licence check for RAT runs too often (every time pre-commit is modified) and it should only be run (locally) when any of *LICEN[S|C]E* files change. We anyhow run full check on CI so this is local optimisation (it runs too long while you play with .pre-commit-config.yaml - and we will probably be able to detect some problems locally as well when new modules are added.
This commit is contained in:
Родитель
1158f57375
Коммит
4d7bf965cc
|
@ -32,8 +32,9 @@ repos:
|
|||
name: Check if licences are OK for Apache
|
||||
entry: ./scripts/ci/ci_check_license.sh
|
||||
language: system
|
||||
files: ^\.pre-commit-config\.yaml$
|
||||
pass_filenames: true
|
||||
files: ^.*LICENSE.*$|^.*LICENCE.*$
|
||||
pass_filenames: false
|
||||
require_serial: true
|
||||
- repo: https://github.com/potiuk/pre-commit-hooks
|
||||
rev: d5bee8590ea3405a299825e68dbfa0e1b951a2be
|
||||
hooks:
|
||||
|
|
Загрузка…
Ссылка в новой задаче