build(deps): bump mypy from 1.10.0 to 1.12.0 #103
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: style | |
on: | |
push: | |
branches: main | |
pull_request: | |
branches: main | |
jobs: | |
ruff: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest] | |
python: [3.11] | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python }} | |
architecture: x64 | |
- name: Run ruff | |
run: | | |
python -m pip install --upgrade uv | |
uv pip install --system -e '.[quality]' | |
ruff --version | |
ruff check --diff . | |
mypy: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest] | |
python: [3.11] | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python }} | |
architecture: x64 | |
- name: Run mypy | |
run: | | |
python -m pip install --upgrade uv | |
uv pip install --system -e '.[quality]' | |
mypy --version | |
mypy | |
ruff-format: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest] | |
python: [3.11] | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python }} | |
architecture: x64 | |
- name: Run ruff | |
run: | | |
python -m pip install --upgrade uv | |
uv pip install --system -e '.[quality]' | |
ruff --version | |
ruff format --check --diff . | |
precommit-hooks: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest] | |
python: [3.11] | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python }} | |
architecture: x64 | |
- name: Run pre-commit hooks | |
run: | | |
python -m pip install --upgrade uv | |
uv pip install --system -e '.[quality]' | |
git checkout -b temp | |
pre-commit install | |
pre-commit --version | |
pre-commit run --all-files |