kopia lustrzana https://github.com/Yakifo/amqtt
move flake9 config into separate file and ignore all style checks
rodzic
1bc2e06be2
commit
e517622319
|
@ -0,0 +1,7 @@
|
|||
[flake8]
|
||||
# disable checks already covered by other tools
|
||||
ignore =
|
||||
E, # style checked by black
|
||||
W, # style checked by black
|
||||
F722, # types checked by mypy
|
||||
F722 # types checked by mypy
|
|
@ -30,8 +30,8 @@ jobs:
|
|||
$HOME/.local/bin/poetry install --extras ci
|
||||
- name: Lint with flake8 and black
|
||||
run: |
|
||||
$HOME/.local/bin/poetry run flake8 tests/ amqtt/ --count --statistics --show-source --ignore=E501,W503,W605,E722
|
||||
$HOME/.local/bin/poetry run black . --check
|
||||
$HOME/.local/bin/poetry run flake8 tests/ amqtt/ --count --statistics --show-source
|
||||
$HOME/.local/bin/poetry run black . --check
|
||||
- name: Test with pytest
|
||||
run: |
|
||||
$HOME/.local/bin/poetry run pytest --cov amqtt --cov tests --cov-report=term --cov-report=xml
|
||||
|
|
|
@ -7,7 +7,6 @@ repos:
|
|||
name: flake8
|
||||
entry: flake8
|
||||
language: system
|
||||
args: ["--ignore=E501,W503,W605,E722"]
|
||||
types: [python]
|
||||
|
||||
- id: black
|
||||
|
|
Ładowanie…
Reference in New Issue