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

Refactor makeurl(), deprecate query taking string or list arguments, drop osc_urlencode() #1476

Merged
merged 3 commits into from
Feb 9, 2024

Conversation

dmach
Copy link
Contributor

@dmach dmach commented Feb 1, 2024

No description provided.

@pep8speaks
Copy link

pep8speaks commented Feb 1, 2024

Hello @dmach! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:

Line 7879:27: E203 whitespace before ','

Line 58:121: E501 line too long (128 > 120 characters)

Line 196:121: E501 line too long (124 > 120 characters)
Line 197:121: E501 line too long (124 > 120 characters)

Comment last updated at 2024-02-09 12:26:54 UTC

osc/core.py Dismissed Show dismissed Hide dismissed
osc/core.py Dismissed Show dismissed Hide dismissed
osc/core.py Dismissed Show dismissed Hide dismissed
osc/core.py Dismissed Show dismissed Hide dismissed
Copy link

codecov bot commented Feb 1, 2024

Codecov Report

Attention: 54 lines in your changes are missing coverage. Please review.

Comparison is base (4240305) 31.46% compared to head (0f8a843) 31.51%.
Report is 13 commits behind head on master.

Files Patch % Lines
osc/core.py 51.94% 37 Missing ⚠️
osc/commandline.py 12.50% 7 Missing ⚠️
osc/fetch.py 0.00% 4 Missing ⚠️
osc/meter.py 86.20% 4 Missing ⚠️
osc/build.py 33.33% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1476      +/-   ##
==========================================
+ Coverage   31.46%   31.51%   +0.04%     
==========================================
  Files          49       50       +1     
  Lines       17884    17908      +24     
==========================================
+ Hits         5628     5643      +15     
- Misses      12256    12265       +9     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@dmach
Copy link
Contributor Author

dmach commented Feb 2, 2024

The failing features/undelete.feature behave test is expected.

Copy link
Contributor

@dcermak dcermak left a comment

Choose a reason for hiding this comment

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

LGTM, I've added a few stylistic comments/nitpicks, but sadly I cannot estimate whether this will not break anything…

osc/core.py Outdated Show resolved Hide resolved
osc/core.py Show resolved Hide resolved
osc/core.py Outdated Show resolved Hide resolved
@@ -9254,7 +9254,7 @@
o = open(destfile, 'wb')
if md5 != '':
query = {'rev': dir['srcmd5']}
u = makeurl(dir['apiurl'], ['source', dir['project'], dir['package'], pathname2url(name)], query=query)
u = makeurl(dir['apiurl'], ['source', dir['project'], dir['package'], name], query=query)

Check warning

Code scanning / CodeQL

File is not always closed Warning

File may not be closed if an exception is raised.
@dmach dmach merged commit dbecb16 into openSUSE:master Feb 9, 2024
32 of 35 checks passed
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.

3 participants