Skip to content

Commit

Permalink
pylint: Pin pylint version to avoid error
Browse files Browse the repository at this point in the history
Letting pylint freely upgrade tends to result in surprise errors, so pin
the version. There's a warning we'll probably need to disable later,
though maybe pylint will get smarter instead.
  • Loading branch information
dehnert committed Jul 10, 2024
1 parent fea7de9 commit 9666e57
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
'scripts': ['flup'], # index.fcgi needs flup
'mysql': ['mysqlclient'],
'dev': [
'pylint', 'pylint-django', # lint
'pylint<3.2.0', 'pylint-django', # lint
'mypy', 'django-stubs', # type checking
],
'doc': ['sphinx'],
Expand Down
2 changes: 2 additions & 0 deletions squaresdb/gate/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -402,6 +402,8 @@ def signin_api(request):

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

return JsonResponse(data=data, status=HTTPStatus.CREATED)

Expand Down

0 comments on commit 9666e57

Please # to comment.