Skip to content

Commit

Permalink
Update python-lint-test.yml
Browse files Browse the repository at this point in the history
enabled linting on all branches
  • Loading branch information
dougransom authored Oct 13, 2023
1 parent 1cc55f8 commit 22b23d0
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions .github/workflows/python-lint-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@ name: Python 🐛 Lint/Test

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

jobs:
test:
Expand All @@ -25,11 +23,10 @@ jobs:
python -m pip install flake8 pytest
- name: Linting with flake8
run: |
echo "CI linting not implemented"
# 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
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: Running pytest tests
run: |
echo "CI tests not implemented"
Expand Down

0 comments on commit 22b23d0

Please sign in to comment.