Exclude venv from flake8 and black in GitHub Actions
This commit is contained in:
parent
237888a6ab
commit
ae875a7269
1 changed files with 3 additions and 3 deletions
6
.github/workflows/test.yml
vendored
6
.github/workflows/test.yml
vendored
|
|
@ -81,16 +81,16 @@ jobs:
|
|||
|
||||
- name: Check code formatting with black
|
||||
run: |
|
||||
black --check --diff .
|
||||
black --check --diff --exclude=venv .
|
||||
continue-on-error: true
|
||||
|
||||
- name: Lint with flake8 (syntax errors)
|
||||
run: |
|
||||
# Stop the build if there are Python syntax errors or undefined names
|
||||
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
|
||||
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics --exclude=venv
|
||||
|
||||
- name: Lint with flake8 (style warnings)
|
||||
run: |
|
||||
# Exit-zero treats all errors as warnings
|
||||
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
|
||||
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics --exclude=venv
|
||||
continue-on-error: true
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue