Skip to content

Commit

Permalink
Add pyright, black + limit linting to single OS/python version
Browse files Browse the repository at this point in the history
  • Loading branch information
arnavb committed May 19, 2023
1 parent 89f14ad commit 4b075e9
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,24 @@ jobs:
run: |
poetry install
- name: Lint with ruff
- name: Typecheck with pyright
run: |
poetry run ruff check . --format=github
poetry run pyright
- name: Test with pytest
run: |
poetry run pytest
# Only lint in one OS/version combo
- name: Lint with ruff
if:
${{ matrix.os == 'ubuntu-latest' && matrix.python-version == '3.11' }}
run: |
poetry run ruff check . --format=github
# Only check formatting in one OS/version combo
- name: Check formatting with black
if:
${{ matrix.os == 'ubuntu-latest' && matrix.python-version == '3.11' }}
run: |
poetry run black --check .

0 comments on commit 4b075e9

Please sign in to comment.