-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: Add pytype #6839
chore: Add pytype #6839
Conversation
@@ -33,7 +33,9 @@ def match_discount_quantity(discount_code, tickets=None, ticket_holders=None): | |||
qty = 0 | |||
ticket_ids = [ticket.id for ticket in discount_code.tickets] | |||
old_holders = get_count( | |||
TicketHolder.query.filter(TicketHolder.ticket_id.in_(ticket_ids)) | |||
TicketHolder.query.filter( | |||
TicketHolder.ticket_id.in_(ticket_ids) # pytype: disable=attribute-error |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Black would make changes.
Issues
======
+ Solved 3
- Added 1
Complexity increasing per file
==============================
- app/api/helpers/utilities.py 1
- app/api/helpers/permission_manager.py 1
Complexity decreasing per file
==============================
+ app/settings/__init__.py -6
+ app/models/helpers/versioning.py -23
See the complete overview on Codacy |
@@ -384,7 +385,7 @@ def import_event_json(task_handle, zip_path, creator_id): | |||
except IOError: | |||
db.session.delete(new_event) | |||
db.session.commit() | |||
raise NotFoundError('File %s missing in event zip' % item[0]) | |||
raise NotFoundError('file', 'File %s missing in event zip' % item[0]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Codecov Report
@@ Coverage Diff @@
## development #6839 +/- ##
===============================================
+ Coverage 65.86% 66.21% +0.34%
===============================================
Files 307 307
Lines 15382 15298 -84
===============================================
- Hits 10131 10129 -2
+ Misses 5251 5169 -82
Continue to review full report at Codecov.
|
No description provided.