Skip to content

⬆️ Update dependency ruff to v0.6.3 #1483

⬆️ Update dependency ruff to v0.6.3

⬆️ Update dependency ruff to v0.6.3 #1483

Workflow file for this run

---
name: Linting
# yamllint disable-line rule:truthy
on:
push:
pull_request:
workflow_dispatch:
env:
DEFAULT_PYTHON: "3.11"
jobs:
ruff:
name: Ruff
runs-on: ubuntu-latest
steps:
- name: ‡️ Check out code from GitHub
uses: actions/checkout@v4.1.6
- name: πŸ— Set up Poetry
run: pipx install poetry
- name: πŸ— Set up Python ${{ env.DEFAULT_PYTHON }}
id: python
uses: actions/setup-python@v5.0.0
with:
python-version: ${{ env.DEFAULT_PYTHON }}
cache: "poetry"
- name: πŸ— Install workflow dependencies
run: |
poetry config virtualenvs.create true
poetry config virtualenvs.in-project true
- name: πŸ— Install Python dependencies
run: poetry install --no-interaction --no-root
- name: πŸš€ Run ruff linter
run: poetry run ruff check --output-format=github .
- name: πŸš€ Run ruff formatter
run: poetry run ruff format --check .
pre-commit-hooks:
name: pre-commit-hooks
runs-on: ubuntu-latest
steps:
- name: ‡️ Check out code from GitHub
uses: actions/checkout@v4.1.6
- name: πŸ— Set up Poetry
run: pipx install poetry
- name: πŸ— Set up Python ${{ env.DEFAULT_PYTHON }}
id: python
uses: actions/setup-python@v5.0.0
with:
python-version: ${{ env.DEFAULT_PYTHON }}
cache: "poetry"
- name: πŸ— Install workflow dependencies
run: |
poetry config virtualenvs.create true
poetry config virtualenvs.in-project true
- name: πŸ— Install Python dependencies
run: poetry install --no-interaction --no-root
- name: πŸš€ Check Python AST
run: poetry run pre-commit run check-ast --all-files
- name: πŸš€ Check for case conflicts
run: poetry run pre-commit run check-case-conflict --all-files
- name: πŸš€ Check docstring is first
run: poetry run pre-commit run check-docstring-first --all-files
- name: πŸš€ Check JSON files
run: poetry run pre-commit run check-json --all-files
- name: πŸš€ Check for merge conflicts
run: poetry run pre-commit run check-merge-conflict --all-files
- name: πŸš€ Check TOML files
run: poetry run pre-commit run check-toml --all-files
- name: πŸš€ Check YAML files
run: poetry run pre-commit run check-yaml --all-files
- name: πŸš€ Check YAML files
run: poetry run pre-commit run check-yaml --all-files
- name: πŸš€ Check End of Files
run: poetry run pre-commit run end-of-file-fixer --all-files
- name: πŸš€ Trim Trailing Whitespace
run: poetry run pre-commit run trailing-whitespace --all-files
# pylint:
# name: pylint
# runs-on: ubuntu-latest
# steps:
# - name: ‡️ Check out code from GitHub
# uses: actions/checkout@v4.1.1
# - name: πŸ— Set up Poetry
# run: pipx install poetry
# - name: πŸ— Set up Python ${{ env.DEFAULT_PYTHON }}
# id: python
# uses: actions/setup-python@v4.7.1
# with:
# python-version: ${{ env.DEFAULT_PYTHON }}
# cache: "poetry"
# - name: πŸ— Install workflow dependencies
# run: |
# poetry config virtualenvs.create true
# poetry config virtualenvs.in-project true
# - name: πŸ— Install Python dependencies
# run: poetry install --no-interaction --no-root
# - name: πŸš€ Run pylint
# run: poetry run pre-commit run pylint --all-files
yamllint:
name: yamllint
runs-on: ubuntu-latest
steps:
- name: ‡️ Check out code from GitHub
uses: actions/checkout@v4.1.6
- name: πŸ— Set up Poetry
run: pipx install poetry
- name: πŸ— Set up Python ${{ env.DEFAULT_PYTHON }}
id: python
uses: actions/setup-python@v5.0.0
with:
python-version: ${{ env.DEFAULT_PYTHON }}
cache: "poetry"
- name: πŸ— Install workflow dependencies
run: |
poetry config virtualenvs.create true
poetry config virtualenvs.in-project true
- name: πŸ— Install Python dependencies
run: poetry install --no-interaction --no-root
- name: πŸš€ Run yamllint
run: poetry run yamllint .