Move Flake configuration into dedicated file

Avoid passing arguments in the script.
This commit is contained in:
2021-11-06 02:55:37 -04:00
parent 718f689df9
commit 71d94bbeab
2 changed files with 13 additions and 7 deletions

12
.flake8 Normal file
View File

@ -0,0 +1,12 @@
[flake8]
# We ignore the following errors:
# * W503 (line break before binary operator): Black moves these to new lines
# * E501 (line too long): Long lines are a fact of life in comment blocks; Black handles active instances of this
# * E203 (whitespace before ':'): Black recommends this as disabled
ignore = W503, E501
extend-ignore = E203
# We exclude the Debian, migrations, and provisioner examples
exclude = debian,api-daemon/migrations/versions,api-daemon/provisioner/examples
# Set the max line length to 88 for Black
max-line-length = 88