mirror of
https://github.com/pretix/pretix.git
synced 2026-08-10 10:47:00 +00:00
Flake8 update
This commit is contained in:
@@ -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):
|
||||
|
||||
@@ -22,7 +22,7 @@ from pretix.base.services.stats import order_overview
|
||||
|
||||
|
||||
class ReportlabExportMixin:
|
||||
multiBuild = False
|
||||
multiBuild = False # noqa
|
||||
|
||||
@property
|
||||
def pagesize(self):
|
||||
|
||||
@@ -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
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user