Fixes for any linter errors #249
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# These github actions will perform linting using pre-commit. | |
# spell-checker: disable | |
--- | |
name: pre-commit | |
# yamllint disable-line rule:truthy | |
on: | |
pull_request: | |
push: | |
branches-ignore: | |
- main | |
permissions: | |
contents: read | |
pull-requests: read | |
jobs: | |
pre-commit: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: install talisman | |
# yamllint disable rule:line-length | |
run: | | |
sudo curl -sLo /usr/local/bin/talisman https://github.com/thoughtworks/talisman/releases/download/v1.32.0/talisman_linux_amd64 | |
sudo chmod 0755 /usr/local/bin/talisman | |
# yamllint enable rule:line-length | |
- name: Install terraform-docs | |
# yamllint disable rule:line-length | |
run: | | |
sudo sh -c 'curl -sL https://github.com/terraform-docs/terraform-docs/releases/download/v0.18.0/terraform-docs-v0.18.0-linux-amd64.tar.gz | tar xzf - -C /usr/local/bin' | |
sudo chmod 0755 /usr/local/bin/terraform-docs | |
# yamllint enable rule:line-length | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: '3.12' | |
cache: pip | |
cache-dependency-path: | | |
requirements*.txt | |
- name: install dependencies | |
run: | | |
pip install -r requirements-dev.txt | |
ansible-galaxy collection install --requirements-file ansible-requirements.yaml | |
- uses: pre-commit/[email protected] |