mirror of
https://github.com/pretix/pretix.git
synced 2026-05-09 15:54:03 +00:00
Bump flake8 to 5.0
This commit is contained in:
@@ -59,7 +59,7 @@ def render_label(content, label_for=None, label_class=None, label_title='', labe
|
|||||||
# usually checkboxes have overall empty labels and special labels per checkbox
|
# usually checkboxes have overall empty labels and special labels per checkbox
|
||||||
# => remove for-attribute as well as "required"-text appended to label
|
# => remove for-attribute as well as "required"-text appended to label
|
||||||
if 'for' in attrs:
|
if 'for' in attrs:
|
||||||
del(attrs['for'])
|
del attrs['for']
|
||||||
else:
|
else:
|
||||||
opt += '<i class="sr-only label-required">, {}</i>'.format(pgettext('form', 'required')) if not optional else ''
|
opt += '<i class="sr-only label-required">, {}</i>'.format(pgettext('form', 'required')) if not optional else ''
|
||||||
|
|
||||||
|
|||||||
@@ -239,13 +239,13 @@ setup(
|
|||||||
'coverage',
|
'coverage',
|
||||||
'coveralls',
|
'coveralls',
|
||||||
'django-debug-toolbar==3.5.*',
|
'django-debug-toolbar==3.5.*',
|
||||||
'flake8==4.0.*',
|
'flake8==5.0.*',
|
||||||
'freezegun',
|
'freezegun',
|
||||||
'isort==5.10.*',
|
'isort==5.10.*',
|
||||||
'pep8-naming==0.12.*',
|
'pep8-naming==0.12.*',
|
||||||
'potypo',
|
'potypo',
|
||||||
'pycodestyle==2.8.*',
|
'pycodestyle==2.9.*',
|
||||||
'pyflakes==2.4.*',
|
'pyflakes==2.5.*',
|
||||||
'pytest-cache',
|
'pytest-cache',
|
||||||
'pytest-cov',
|
'pytest-cov',
|
||||||
'pytest-django==4.*',
|
'pytest-django==4.*',
|
||||||
|
|||||||
Reference in New Issue
Block a user