Files
my-rook-config/.github/workflows/linters.yaml
T
dependabot[bot] 3aa5e0eef4 build(deps): bump psf/black from 26.3.0 to 26.3.1
Bumps [psf/black](https://github.com/psf/black) from 26.3.0 to 26.3.1.
- [Release notes](https://github.com/psf/black/releases)
- [Changelog](https://github.com/psf/black/blob/main/CHANGES.md)
- [Commits](https://github.com/psf/black/compare/35ea67920b7f6ac8e09be1c47278752b1e827f76...c6755bb741b6481d6b3d3bb563c83fa060db96c9)

---
updated-dependencies:
- dependency-name: psf/black
  dependency-version: 26.3.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-03-16 12:43:24 +00:00

65 lines
1.5 KiB
YAML

name: Linters
on:
push:
tags:
- v*
branches:
- master
- release-*
pull_request:
branches:
- master
- release-*
# cancel the in-progress workflow when PR is refreshed.
concurrency:
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.head_ref || github.sha }}
cancel-in-progress: true
permissions:
contents: read
jobs:
yaml-linter:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
with:
python-version: 3.9
- name: Install yamllint
run: pip install yamllint
- name: Lint YAML files
run: make yamllint
pylint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
with:
python-version: 3.12
- name: Install pylint and requirements
run: |
pip install pylint
pip install pylint --upgrade
pip install requests
pip install pygit2
- name: Lint Python files
run: make pylint
- name: Setup black for py
uses: psf/black@c6755bb741b6481d6b3d3bb563c83fa060db96c9 # stable