Skip to content
This repository has been archived by the owner on Oct 11, 2024. It is now read-only.

build(deps-dev): bump ruff from 0.5.1 to 0.5.3 #505

build(deps-dev): bump ruff from 0.5.1 to 0.5.3

build(deps-dev): bump ruff from 0.5.1 to 0.5.3 #505

Workflow file for this run

name: style
on:
push:
branches: main
pull_request:
branches: main
jobs:
ruff:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
python: [3.9]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}
architecture: x64
- uses: abatilo/actions-poetry@v3
with:
poetry-version: "1.8.2"
- name: Resolve dependencies
run: poetry export -f requirements.txt --without-hashes --only quality --output requirements.txt
- name: Install dependencies
run: |
python -m pip install --upgrade uv
uv pip install --system -r requirements.txt
- name: Run ruff
run: |
ruff --version
ruff check --diff .
mypy:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
python: [3.9]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}
architecture: x64
- uses: abatilo/actions-poetry@v3
with:
poetry-version: "1.8.2"
- name: Resolve dependencies
run: poetry export -f requirements.txt --without-hashes --with quality --output requirements.txt
- name: Install dependencies
run: |
python -m pip install --upgrade uv
uv pip install --system -r requirements.txt
- name: Run mypy
run: |
mypy --version
mypy
ruff-format:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
python: [3.9]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}
architecture: x64
- uses: abatilo/actions-poetry@v3
with:
poetry-version: "1.8.2"
- name: Resolve dependencies
run: poetry export -f requirements.txt --without-hashes --only quality --output requirements.txt
- name: Install dependencies
run: |
python -m pip install --upgrade uv
uv pip install --system -r requirements.txt
- name: Run ruff
run: |
ruff --version
ruff format --check --diff .
precommit-hooks:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
python: [3.9]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}
architecture: x64
- uses: abatilo/actions-poetry@v3
with:
poetry-version: "1.8.2"
- name: Resolve dependencies
run: poetry export -f requirements.txt --without-hashes --only quality --output requirements.txt
- name: Install dependencies
run: |
python -m pip install --upgrade uv
uv pip install --system -r requirements.txt
- name: Run pre-commit hooks
run: |
git checkout -b temp
pre-commit install
pre-commit --version
pre-commit run --all-files