Merge pull request #106 from geotribu/msn/wizz #194
This file contains hidden or 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: "🐍 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@v6 | |
| - name: Set up Python | |
| uses: actions/setup-python@v6 | |
| 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 |