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:
parent
7653dc947a
commit
24840b54ac
73 changed files with 621 additions and 507 deletions
|
@ -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 "
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue