move flake9 config into separate file and ignore all style checks

pull/101/head
Florian Ludwig 2022-02-06 14:03:07 +01:00
rodzic 1bc2e06be2
commit e517622319
3 zmienionych plików z 9 dodań i 3 usunięć

7
.flake8 100644
Wyświetl plik

@ -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

Wyświetl plik

@ -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

Wyświetl plik

@ -7,7 +7,6 @@ repos:
name: flake8
entry: flake8
language: system
args: ["--ignore=E501,W503,W605,E722"]
types: [python]
- id: black