Files
Anthias/.github/workflows/python-lint.yaml
dependabot[bot] b22f610a2c chore(deps-dev): bump ruff from 0.14.3 to 0.14.10 (#2629)
* chore(deps-dev): bump ruff from 0.14.3 to 0.14.10

Bumps [ruff](https://github.com/astral-sh/ruff) from 0.14.3 to 0.14.10.
- [Release notes](https://github.com/astral-sh/ruff/releases)
- [Changelog](https://github.com/astral-sh/ruff/blob/main/CHANGELOG.md)
- [Commits](https://github.com/astral-sh/ruff/compare/0.14.3...0.14.10)

---
updated-dependencies:
- dependency-name: ruff
  dependency-version: 0.14.10
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

* chore: update `uv.lock`

* chore: trigger Python linting workflow when `pyproject.toml` or `uv.lock` changes

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Nico Miguelino <nicomiguelino2014@gmail.com>
2026-01-05 10:48:27 -08:00

52 lines
1021 B
YAML

name: Run Python Linter
on:
push:
branches:
- 'master'
paths:
- pyproject.toml
- uv.lock
- '**/*.py'
- '.github/workflows/python-lint.yaml'
pull_request:
branches:
- master
paths:
- pyproject.toml
- uv.lock
- '**/*.py'
- '.github/workflows/python-lint.yaml'
jobs:
run-python-linter:
runs-on: ubuntu-24.04
strategy:
matrix:
python-version: ["3.11"]
steps:
- uses: actions/checkout@v5
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}
- name: Install uv
uses: astral-sh/setup-uv@v7
with:
version: '0.9.17'
- name: Install dependencies
run: |
uv venv
uv pip install --group dev-host
- name: Run Ruff linting checks
run: |
uv run ruff check .
- name: Run Ruff formatting checks
run: |
uv run ruff format --check .