Skip to content

Commit

Permalink
add run black to pre commit
Browse files Browse the repository at this point in the history
  • Loading branch information
ilyes319 committed Apr 23, 2024
1 parent 3ad2021 commit 4b3f147
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/pre-commit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,16 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
- uses: actions/setup-python@v4
with:
python-version: "3.10"
cache: "pip"

- name: Install requirements
run: |
pip install -U pip
pip install pylint
pip install -U black
- name: Log installed environment
- name: Run black
run: |
python3 -m pip freeze
python -m black .
- uses: pre-commit/[email protected]

0 comments on commit 4b3f147

Please sign in to comment.