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 bug risks and code quality issues #121

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

sanketsaurav
Copy link

Hi! 👋

I'm the founder of DeepSource, a code review automation tool that detects problems in every PR using static analysis and helps developers save a ton of time during code reviews. I ran our analysis on this project and found some interesting issues. I've already fixed some of them in this PR. Here are some others that you might find interesting:

Here are some of the fixes I've made in the PR:

  • (anti-pattern) Replace unnecessary function calls to dict() and list() with literals
  • (bug-risk) Replace calls to exit() with sys.exit()
  • (anti-pattern) Remove unnecessary lambda expression

I would love it if you use DeepSource for running continuous analysis on the project. It's free for open-source and detects 550+ issues in Python. All you need to do is follow these simple steps:

  1. Merge this PR
  2. Sign up on DeepSource with your GitHub account and grant access to this repo.
  3. Activate analysis on this repo here.
  4. Done! 🎊

Finally, please LMK if you have any questions that I can answer. Looking forward to seeing DeepSource running on aardvark! 🙌

Best,
Sanket.

Fixes:
 - (anti-pattern) Replace unnecessary function calls to `dict()` and
`list()` with literals
 - (bug-risk) Replace calls to `exit()` with `sys.exit()`
 - (anti-pattern) Remove unnecessary lambda expression

Also added `.deepsource.toml` to configure continuous static analysis
with DeepSource.
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