Add linting workflow

This commit is contained in:
Matteo Bertucci
2021-01-14 09:44:52 +01:00
parent 3fd070021e
commit 39d4344fbf
3 changed files with 80 additions and 0 deletions

20
.flake8 Normal file
View File

@ -0,0 +1,20 @@
[flake8]
max-line-length=110
docstring-convention=all
import-order-style=pycharm
exclude=constants.py,__pycache__,.cache,.git,.md,.svg,.png,tests,venv,.venv
ignore=
B311,W503,E226,S311,T000
# Missing Docstrings
D100,D104,D105,D107,
# Docstring Whitespace
D203,D212,D214,D215,
# Docstring Quotes
D301,D302,
# Docstring Content
D400,D401,D402,D404,D405,D406,D407,D408,D409,D410,D411,D412,D413,D414,D416,D417
# Type Annotations
ANN002,ANN003,ANN101,ANN102,ANN204,ANN206
# Whitespace Before
E203