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

Fix some code quality and bug-risk issues #2141

Merged
merged 1 commit into from
Apr 17, 2020

Conversation

pnijhara
Copy link
Contributor

  • Fix dangerous default argument
  • Remove unnecessary comprehension
  • Remove unnecessary f-string

Find the other issues found here - https://deepsource.io/gh/pnijhara/python-for-android/issues/?category=all

This PR also adds .deepsource.toml configuration file to run DeepSource analysis on the repo with. Upon enabling DeepSource, the analysis will run on every PR and commit to detect 560+ types of issues in the changes — including bug risks, anti-patterns, security vulnerabilities, etc.

To enable DeepSource analysis after merging this PR, please follow these steps:

  1. Signup on DeepSource with your GitHub account and grant access to this repo.
  2. Activate analysis on this repo here.

You can also look at the docs for more details. Do let me know if I can be of any help!

@@ -894,7 +894,9 @@ def biglink(ctx, arch):
env=env)


def biglink_function(soname, objs_paths, extra_link_dirs=[], env=None):
def biglink_function(soname, objs_paths, extra_link_dirs=None, env=None):
Copy link
Member

Choose a reason for hiding this comment

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

Special thanks for this change :) default mutable argument gotcha 👍

Copy link
Member

@AndreMiras AndreMiras left a comment

Choose a reason for hiding this comment

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

Can't argue with the proposed changes.
Thanks!

@AndreMiras AndreMiras merged commit ca9c467 into kivy:develop Apr 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants