chore: Bump version #553
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: Run lint checks | |
| on: | |
| push: | |
| paths: | |
| - 'keymap_drawer/**' | |
| - pyproject.toml | |
| - poetry.lock | |
| pull_request: | |
| workflow_dispatch: | |
| jobs: | |
| Lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 1 | |
| - name: Set up python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.12" | |
| - name: Install Poetry | |
| uses: snok/install-poetry@v1 | |
| with: | |
| virtualenvs-in-project: true | |
| - name: Load cached venv | |
| id: cached-poetry-dependencies | |
| uses: actions/cache@v4 | |
| with: | |
| path: .venv | |
| key: venv-${{ runner.os }}-3.10-${{ hashFiles('poetry.lock') }} | |
| - name: Install dependencies | |
| run: poetry install -E dev --no-interaction | |
| - name: Black | |
| run: poetry run black --check keymap_drawer | |
| - name: Pylint | |
| run: poetry run pylint --disable=fixme keymap_drawer | |
| if: success() || failure() | |
| - name: Mypy | |
| run: poetry run mypy keymap_drawer | |
| if: success() || failure() | |
| - name: Deptry | |
| run: poetry run deptry . | |
| if: success() || failure() |