Flake errors

This commit is contained in:
Oliver Walters 2021-02-04 00:51:00 +11:00
parent e417ff2b4d
commit 75431f0ee4
2 changed files with 3 additions and 0 deletions

View File

@ -540,6 +540,7 @@ def getOldestMigrationFile(app, exclude_extension=True, ignore_initial=True):
oldest_file = oldest_file.replace('.py', '')
return oldest_file
def getNewestMigrationFile(app, exclude_extension=True):
"""

View File

@ -9,6 +9,8 @@ ignore =
C901,
# - N802 - function name should be lowercase (In the future, we should conform to this!)
N802,
# - N806 - variable should be lowercase
N806,
N812,
exclude = .git,__pycache__,*/migrations/*,*/lib/*,*/bin/*,*/media/*,*/static/*,*ci_*.py*
max-complexity = 20