mirror of
https://github.com/dnlbauer/django-signposting.git
synced 2026-09-10 14:05:31 +00:00
more agressive lint checking in pipeline
This commit is contained in:
5
.github/workflows/python-package.yml
vendored
5
.github/workflows/python-package.yml
vendored
@@ -32,10 +32,7 @@ jobs:
|
|||||||
python -m pip install -e '.[dev]'
|
python -m pip install -e '.[dev]'
|
||||||
- name: Lint with flake8
|
- name: Lint with flake8
|
||||||
run: |
|
run: |
|
||||||
# stop the build if there are Python syntax errors or undefined names
|
flake8 . --count --max-complexity=10 --max-line-length=127 --statistics
|
||||||
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: Test with pytest
|
- name: Test with pytest
|
||||||
run: |
|
run: |
|
||||||
pytest
|
pytest
|
||||||
|
|||||||
3
.pre-commit-config.yaml
Normal file
3
.pre-commit-config.yaml
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
- repo: https://github.com/pycqa/flake8
|
||||||
|
hooks:
|
||||||
|
- id: flake8
|
||||||
Reference in New Issue
Block a user