Skip to content

Commit

Permalink
Better lint workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
mbsantiago committed Jan 31, 2024
1 parent bdf505e commit 9542923
Showing 1 changed file with 9 additions and 14 deletions.
23 changes: 9 additions & 14 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -1,36 +1,31 @@
name: Linting

on:
push:
branches: ["main"]
pull_request:
branches: ["main"]

jobs:
lint:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.11"]
steps:
- uses: actions/checkout@v4
- name: Setup PDM
uses: pdm-project/setup-pdm@v3
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
python-version: "3.11"
- name: Install dependencies
run: |
cd back
pdm install --dev
run: pip install black ruff pyright
- name: Check formatting
run: |
cd back
pdm run black --check src
pdm run black --check tests
black --check src
black --check tests
- name: Check typing
run: |
cd back
pdm run pyright src
pyright src
- name: Check for overall code issues
run: |
cd back
pdm run ruff src
ruff src

0 comments on commit 9542923

Please sign in to comment.