33 lines
800 B
YAML
33 lines
800 B
YAML
name: Lint
|
|
|
|
on: [push, pull_request, workflow_dispatch]
|
|
|
|
permissions: {}
|
|
|
|
env:
|
|
FORCE_COLOR: 1
|
|
PREK_COLOR: always
|
|
RUFF_OUTPUT_FORMAT: github
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
lint:
|
|
runs-on: ubuntu-latest
|
|
name: Lint
|
|
steps:
|
|
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
|
with:
|
|
persist-credentials: false
|
|
- uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
|
|
with:
|
|
python-version: "3.x"
|
|
- name: Install uv
|
|
uses: astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b # v8.1.0
|
|
- name: Lint
|
|
run: uvx --with tox-uv tox -e lint
|
|
- name: Mypy
|
|
run: uvx --with tox-uv tox -e mypy
|