Flake8 update

This commit is contained in:
Raphael Michel
2019-01-30 09:31:34 +01:00
parent 5da2eab1fb
commit 944138f7a9
4 changed files with 7 additions and 7 deletions
+2 -2
View File
@@ -86,8 +86,8 @@ moment_locales = {
'te', 'tzm', 'zh-cn',
}
toJavascript_re = re.compile(r'(?<!\w)(' + '|'.join(date_conversion_to_moment.keys()) + r')\b')
toJavascriptOut_re = re.compile(r'(?<!\w)(' + '|'.join(out_date_conversion_to_moment.keys()) + r')\b')
toJavascript_re = re.compile(r'(?<!\w)(' + '|'.join(date_conversion_to_moment.keys()) + r')\b') # noqa
toJavascriptOut_re = re.compile(r'(?<!\w)(' + '|'.join(out_date_conversion_to_moment.keys()) + r')\b') # noqa
def get_javascript_output_format(format_name):
+1 -1
View File
@@ -22,7 +22,7 @@ from pretix.base.services.stats import order_overview
class ReportlabExportMixin:
multiBuild = False
multiBuild = False # noqa
@property
def pagesize(self):
+3 -3
View File
@@ -1,10 +1,10 @@
django-debug-toolbar==1.9.1
sqlparse==0.2.1 # pinned due to difficulties with django-debug-toolbar
# Testing requirements
pycodestyle >= 2.4.0, < 2.5.0 # requirement by flake8 3.6.0
pyflakes >= 2.0.0, < 2.1.0 # requirement by flake8 3.6.0
pycodestyle==2.5.*
pyflakes==2.1.*
pep8-naming
flake8
flake8==3.7.*
codecov
coverage
pytest==3.6.*
+1 -1
View File
@@ -1,5 +1,5 @@
[flake8]
ignore = N802,W503,E402,C901,E722,W504,E252,N812
ignore = N802,W503,E402,C901,E722,W504,E252,N812,N806
max-line-length = 160
exclude = migrations,.ropeproject,static,mt940.py,_static,build,make_testdata.py,*/testutils/settings.py,tests/settings.py,pretix/base/models/__init__.py
max-complexity = 11