-
Notifications
You must be signed in to change notification settings - Fork 34
#158 - BE - Submit with git #323
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
Conversation
Co-authored-by: Sourcery AI <>
Codecov Report
@@ Coverage Diff @@
## master #323 +/- ##
==========================================
+ Coverage 83.37% 84.02% +0.64%
==========================================
Files 61 62 +1
Lines 2683 2823 +140
==========================================
+ Hits 2237 2372 +135
- Misses 446 451 +5
Continue to review full report at Codecov.
|
Awesome work! I've added few insights :) |
Sourcery Code Quality Report✅ Merging this PR will increase code quality in the affected files by 0.18%.
Here are some functions in these files that still need a tune-up:
Legend and ExplanationThe emojis denote the absolute quality of the code:
The 👍 and 👎 indicate whether the quality has improved or gotten worse with this pull request. Please see our documentation here for details on how these metrics are calculated. We are actively working on this report - lots more documentation and extra metrics to come! Help us improve this quality report! |
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.
Awesome job. 2 Non blocking comments
@@ -67,3 +67,5 @@ LIMITS_PER_HOUR = 50 | |||
|
|||
# Change password settings | |||
MAX_INVALID_PASSWORD_TRIES = 5 | |||
|
|||
REPOSITORY_FOLDER = os.getenv("REPOSITORY_FOLDER", os.path.abspath(os.path.join(os.curdir, "repositories"))) |
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.
Non-blocking: Our code doesn't have >79 chars lines, so if you can split it to 2 pathes it'll be great.
DEFAULT_REPOSITORY_FOLDER = (Path() / "repositories").resolve()
REPOSITORY_FOLDER = os.getenv("REPOSITORY_FOLDER", DEFAULT_REPOSITORY_FOLDER)
import subprocess # noqa: S404 | ||
import tempfile | ||
import typing | ||
import pathlib |
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.
p should appear after os and before shutil
No description provided.