Skip to content
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

Merged
merged 2 commits into from
Feb 14, 2020
Merged

chore: Add pytype #6839

merged 2 commits into from
Feb 14, 2020

Conversation

iamareebjamal
Copy link
Member

No description provided.

@auto-label auto-label bot added the chore label Feb 13, 2020
@@ -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

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Black would make changes.

@niranjan94
Copy link
Member

Codacy Here is an overview of what got changed by this pull request:

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])
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@codecov
Copy link

codecov bot commented Feb 14, 2020

Codecov Report

Merging #6839 into development will increase coverage by 0.34%.
The diff coverage is 29.03%.

Impacted file tree graph

@@               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
Impacted Files Coverage Δ
app/models/user.py 57.24% <ø> (ø) ⬆️
app/api/helpers/ticketing.py 16.8% <ø> (ø) ⬆️
app/models/track.py 67.64% <ø> (ø) ⬆️
app/models/event.py 81.27% <0%> (ø) ⬆️
app/api/helpers/tasks.py 17.36% <0%> (ø) ⬆️
app/api/helpers/utilities.py 68.65% <0%> (ø) ⬆️
app/views/healthcheck.py 43.33% <0%> (-1.67%) ⬇️
app/api/helpers/import_helpers.py 27.27% <0%> (-0.11%) ⬇️
app/api/schema/events.py 91.47% <0%> (ø) ⬆️
app/api/helpers/third_party_auth.py 55.81% <0%> (ø) ⬆️
... and 6 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 934aac6...276432d. Read the comment docs.

@iamareebjamal iamareebjamal merged commit 5c069b2 into fossasia:development Feb 14, 2020
@iamareebjamal iamareebjamal deleted the pytype branch February 14, 2020 19:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants