Exclude venv from flake8 and black in CI
This commit is contained in:
parent
532523e1b3
commit
237888a6ab
1 changed files with 3 additions and 3 deletions
|
|
@ -66,7 +66,7 @@ lint_syntax:
|
||||||
- pip install flake8
|
- pip install flake8
|
||||||
script:
|
script:
|
||||||
- source venv/bin/activate
|
- source venv/bin/activate
|
||||||
- flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
|
- flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics --exclude=venv
|
||||||
|
|
||||||
# Lint - Style Warnings (non-blocking)
|
# Lint - Style Warnings (non-blocking)
|
||||||
lint_style:
|
lint_style:
|
||||||
|
|
@ -79,6 +79,6 @@ lint_style:
|
||||||
- pip install black flake8
|
- pip install black flake8
|
||||||
script:
|
script:
|
||||||
- source venv/bin/activate
|
- source venv/bin/activate
|
||||||
- black --check --diff . || true
|
- black --check --diff --exclude=venv . || true
|
||||||
- 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
|
||||||
allow_failure: true
|
allow_failure: true
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue