Files
Anthias/.github/workflows/python-lint.yaml
dependabot[bot] dde9916983 chore(deps): bump astral-sh/setup-uv in the github-actions group (#2748)
Bumps the github-actions group with 1 update: [astral-sh/setup-uv](https://github.com/astral-sh/setup-uv).


Updates `astral-sh/setup-uv` from 7.6.0 to 8.1.0
- [Release notes](https://github.com/astral-sh/setup-uv/releases)
- [Commits](37802adc94...08807647e7)

---
updated-dependencies:
- dependency-name: astral-sh/setup-uv
  dependency-version: 8.1.0
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: github-actions
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-04-25 07:01:35 +01:00

62 lines
1.6 KiB
YAML

name: Run Python Linter
on:
push:
branches:
- 'master'
paths:
- pyproject.toml
- uv.lock
- 'requirements/requirements.host.txt'
- '**/*.py'
- '.github/workflows/python-lint.yaml'
pull_request:
branches:
- master
paths:
- pyproject.toml
- uv.lock
- 'requirements/requirements.host.txt'
- '**/*.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@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6
with:
python-version: ${{ matrix.python-version }}
- name: Install uv
uses: astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b # v8.1.0
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 .
- name: Verify requirements/requirements.host.txt is in sync
run: |
uv export --group host --no-hashes --no-annotate \
--no-emit-project --no-default-groups \
-o /tmp/requirements.host.txt
diff -u <(grep -v '^#' requirements/requirements.host.txt) \
<(grep -v '^#' /tmp/requirements.host.txt)