Skip to content

Merge pull request #92 from geotribu/chore/migrate-from-poetry-to-uv #188

Merge pull request #92 from geotribu/chore/migrate-from-poetry-to-uv

Merge pull request #92 from geotribu/chore/migrate-from-poetry-to-uv #188

Workflow file for this run

name: "🐍 Lint"
on:
push:
branches:
- main
paths:
- "**.py"
pull_request:
branches:
- main
paths:
- "**.py"
env:
PYTHON_VERSION: "3.12"
jobs:
lint-ubuntu:
name: "🔍 Lint Python code"
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: write
steps:
- name: Get source code
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ env.PYTHON_VERSION }}
cache: "pip"
cache-dependency-path: "uv.lock"
- name: Install uv
uses: astral-sh/setup-uv@v7
- name: Install requirements
run: uv sync
- name: Check black lint
run: uv run black --check --diff ./gischat
- name: Check isort lint
run: uv run isort --check --profile=black ./gischat
- name: Lint with flake8
run: |
uv run flake8 gischat --count --select=E9,F63,F7,F82 --show-source --statistics
uv run flake8 gischat --count --exit-zero --statistics