Skip to content

Commit

Permalink
add black to github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
aadibajpai committed Nov 6, 2020
1 parent 7ff9555 commit 54a2d20
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/python-linting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,13 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install flake8 pytest
pip install flake8 pytest black
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Lint with flake8
- name: Lint with flake8 & black
run: |
# stop the build if there are Python syntax errors or undefined names
flake8 SwagLyricsBot --count --max-line-length=120 --max-complexity=10 --show-source --statistics
black -l 120 --check --diff .
# - name: Test with pytest
# run: |
# pytest

0 comments on commit 54a2d20

Please sign in to comment.