Skip to content

Commit

Permalink
Change workflow to pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
kcz358 committed Sep 1, 2024
1 parent 228f74b commit ad0f9cb
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ jobs:
uses: actions/setup-python@v4
with:
python-version: '3.9'
- name: Install specific version of Black
run: pip install black==23.9.1
- name: Run Black
run: black --line-length=240 ./
- name: Install pre-commit hook
run: |
python -m pip install pre-commit
pre-commit install
- name: Linting
run: pre-commit run --all-files

0 comments on commit ad0f9cb

Please sign in to comment.