Skip to content

Commit

Permalink
pylint: Newer (floating) pylint and ignore some warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
dehnert committed Feb 5, 2025
1 parent fdc9372 commit 979d9f8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
'scripts': ['flup'], # index.fcgi needs flup
'mysql': ['mysqlclient'],
'dev': [
'pylint<3.2.0', 'pylint-django', # lint
'pylint', 'pylint-django', # lint
'mypy', 'django-stubs', # type checking
],
'doc': ['sphinx'],
Expand Down
4 changes: 2 additions & 2 deletions squaresdb/gate/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,7 @@ def signin_api(request):
return exc.response

data['payment'] = payment.pk if paid else 0
# pylint exception possibly-used-before-assignment needed starting in 3.2.0
# pylint:disable=possibly-used-before-assignment # pylint>=3.2.0
data['attendee'] = attendee.pk if present else 0

return JsonResponse(data=data, status=HTTPStatus.CREATED)
Expand Down Expand Up @@ -557,7 +557,7 @@ def _fill_squarespay_sub_amount(total, sub_datas):

def _find_squarespay_subs_from_row(new_subs, errors, warns,
allow_periods, row, payment_type) -> None:
# pylint:disable=too-many-arguments
# pylint:disable=too-many-arguments,too-many-positional-arguments
assert row['paymentOption'] == 'card'
if row['decision'] != 'ACCEPT':
warn = 'Payment for "%s" had decision %s, ignoring' % (row['name'], row['decision'])
Expand Down

0 comments on commit 979d9f8

Please # to comment.