-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Refactor code quality issues #2044
Conversation
Codecov Report
@@ Coverage Diff @@
## master #2044 +/- ##
=========================================
Coverage 91.857% 91.857%
=========================================
Files 35 35
Lines 3242 3242
Branches 557 556 -1
=========================================
Hits 2978 2978
Misses 179 179
Partials 85 85
Continue to review full report at Codecov.
|
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.
Nice, this looks like a good change. I am not familiar with this tool. Is this something that we could add to tox
and then run with CI?
|
||
test_patterns = ["tests/**"] | ||
|
||
exclude_patterns = ["docker/**"] |
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.
What about the docs folder?
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.
That can be excluded too, but I saw the conf.py
file in there, so I didn't add the docs folder here.
DeepSource is a static analysis tool (which runs separately) and not exactly for testing, so it can't be integrated directly with If you'd like, here's how you can quickly activate DeepSource to continuously analyze your repository:
If you have any doubts or questions, you can check out the docs, or feel free to reach out :) |
Thanks, I'll look into that over the weekend. These changes seemed logical enough, but I would not want autofix enabled. |
It's not enabled on autopilot. You just have the additional choice to Autofix some detected issues, or manually fix them, or ignore them altogether. Even if you choose to Autofix a particular issue, it opens a separate PR, rather than directly commiting the changes, so nothing goes through undetected :) |
@ahopkins, Just making sure if you need any help in activating analysis? |
@ahopkins just let me know if you need any help in activating :) |
Description
Hi 👋, I ran DeepSource analysis on my fork of the repo, and found some interesting code quality and performance issues that can improve the general code quality and performance here.
This PR fixes a few of the issues detected.
Summary of changes
len()
call for comparison check.sys.exit()
calls instead of bareexit()
..deepsource.toml
file for continuous analysis on bug risks/performance/code-quality issues on new changes.