Skip to content

Commit

Permalink
Call flake8 and black with poetry.
Browse files Browse the repository at this point in the history
  • Loading branch information
ebezzam committed Oct 21, 2024
1 parent f55ad44 commit 9290bd3
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/poetry.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,13 @@ jobs:
- name: Lint with flake8
run: |
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=B,C,E,F,W,T4,B9 --show-source --statistics --max-complexity=18 --max-line-length=100 --ignore=E203,E266,E501,W503,F403,F401,C901
poetry run flake8 . --count --select=B,C,E,F,W,T4,B9 --show-source --statistics --max-complexity=18 --max-line-length=100 --ignore=E203,E266,E501,W503,F403,F401,C901
- name: Format with black
run: |
black *.py -l 100
black examples/*.py -l 100
black profile/*.py -l 100
black pydevtips/*.py -l 100
black tests/*.py -l 100
poetry run black *.py -l 100
poetry run black examples/*.py -l 100
poetry run black profile/*.py -l 100
poetry run black pydevtips/*.py -l 100
poetry run black tests/*.py -l 100
- name: Test with pytest
run: poetry run pytest -v

0 comments on commit 9290bd3

Please sign in to comment.