Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Absorb actionlint into pre-commit #1028

Merged
merged 10 commits into from
Apr 2, 2023
26 changes: 0 additions & 26 deletions .github/workflows/actionlint.yml

This file was deleted.

5 changes: 5 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,11 @@ repos:
hooks:
- id: shellcheck

- repo: https://github.com/rhysd/actionlint
rev: main
hooks:
- id: actionlint
AdarshRawat1 marked this conversation as resolved.
Show resolved Hide resolved

- repo: local # More local hooks are defined at the top.
hooks:
- id: types
Expand Down
6 changes: 6 additions & 0 deletions templates/.pre-commit-config.yaml.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,12 @@ repos:
# See the following documentation for what each rule does:
# https://www.pydocstyle.org/en/6.2.3/error_codes.html#error-codes
- --add-ignore=D1,D202,D205,D211,D400

- repo: https://github.com/rhysd/actionlint
rev: main
hooks:
- id: actionlint-docker
files: ^\.github/(workflows|actions)/.*$

{% endif %}
{% if contains_js_code | default(true) %}
Expand Down