Adjust flake8 to not consider constants magic

This commit is contained in:
Alexander Hess 2021-01-24 18:31:02 +01:00
commit de3e489b39
Signed by: alexander
GPG key ID: 344EA5AB10D868E0
7 changed files with 13 additions and 17 deletions

View file

@ -105,6 +105,8 @@ extend-ignore =
WPS412,
# Allow multiple assignment, e.g., x = y = 123
WPS429,
# There are no magic numbers.
WPS432,
per-file-ignores =
# Top-levels of a sub-packages are intended to import a lot.
@ -137,8 +139,6 @@ per-file-ignores =
src/urban_meal_delivery/configuration.py:
# Allow upper case class variables within classes.
WPS115,
# Numbers are normal in config files.
WPS432,
src/urban_meal_delivery/forecasts/decomposition.py:
# The module does not have a high cognitive complexity.
WPS232,
@ -166,8 +166,6 @@ per-file-ignores =
WPS402,
# Allow closures.
WPS430,
# Numbers are normal in test cases as expected results.
WPS432,
# When testing, it is normal to use implementation details.
WPS437,