Add yamllint (in pre-commit and CI) (#33676)

* Add yamllint (in pre-commit and CI)

* Fix linting for all YAML files

* Bump and add it to requirements

* Fix gen_requirements for pre-commit, remove 'v' from version
This commit is contained in:
Franck Nijhof 2020-04-05 10:33:45 +02:00 committed by GitHub
parent 7653dc947a
commit 24840b54ac
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
73 changed files with 621 additions and 507 deletions

View file

@ -262,7 +262,7 @@ def requirements_pre_commit_output():
for repo in (x for x in pre_commit_conf["repos"] if x.get("rev")):
for hook in repo["hooks"]:
if hook["id"] not in IGNORE_PRE_COMMIT_HOOK_ID:
reqs.append(f"{hook['id']}=={repo['rev']}")
reqs.append(f"{hook['id']}=={repo['rev'].lstrip('v')}")
reqs.extend(x for x in hook.get("additional_dependencies", ()))
output = [
f"# Automatically generated "