Bump black from 22.3.0 to 24.3.0 #7
This file contains 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: Python linting and checks | |
on: | |
- push | |
jobs: | |
black: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-python@v2 | |
with: | |
python-version: "3.9" | |
cache: "pip" | |
- run: pip install -r dev-requirements.txt | |
- name: Run black | |
run: | | |
python -m black --check pg_lupa/ | |
isort: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-python@v2 | |
with: | |
python-version: "3.9" | |
cache: "pip" | |
- run: pip install -r dev-requirements.txt | |
- name: Run isort | |
run: | | |
python -m isort --check-only pg_lupa/ | |
mypy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-python@v2 | |
with: | |
python-version: "3.9" | |
cache: "pip" | |
- run: pip install -r dev-requirements.txt | |
- name: Run mypy | |
run: | | |
python -m mypy pg_lupa/ | |
tests: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-python@v2 | |
with: | |
python-version: "3.9" | |
cache: "pip" | |
- run: pip install -r dev-requirements.txt | |
- name: Run tests | |
run: | | |
py.test |