Skip to content

Commit

Permalink
👷 add black and isort to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
nlohmann committed Apr 2, 2024
1 parent 7d99a8d commit 742fe60
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions .github/workflows/all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,20 @@ jobs:
python -m pip install -r requirements.txt
- name: Run cmake_downloader.py
run: python cmake_downloader.py --latest_release
- name: Style checks
if: matrix.python-version == '3.12'

style:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: 3.12
- name: Setup virtual environment
run: |
python -m pip install --upgrade pip
python -m pip install wheel
python -m pip install -r requirements-dev.txt
- name: Style checks
run: |
black --check *.py
isort --check *.py

0 comments on commit 742fe60

Please sign in to comment.