Skip to content

Commit

Permalink
pre-commit installation in github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
andgineer committed Feb 9, 2022
1 parent e6e32c0 commit b7277b5
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,10 @@ jobs:
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Lint with flake8
run: |
pip install flake8
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: pre-commit
run: pre-commit run --all-files
run: |
pip install flake8 pre-commit
pre-commit run --all-files
- name: Test with unittest
run: |
python -m unittest --verbose

0 comments on commit b7277b5

Please sign in to comment.