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 local building in git projects - v2 #1669

Merged
merged 3 commits into from
Nov 29, 2024

Conversation

dmach
Copy link
Contributor

@dmach dmach commented Nov 28, 2024

No description provided.

@pep8speaks
Copy link

pep8speaks commented Nov 28, 2024

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

Line 1312:17: E251 unexpected spaces around keyword / parameter equals
Line 1313:13: E131 continuation line unaligned for hanging indent
Line 1314:13: E131 continuation line unaligned for hanging indent
Line 1319:9: E122 continuation line missing indentation or outdented

Comment last updated at 2024-11-29 15:37:12 UTC

# because obs_scm store takes precedence as .osc is present
with open(os.path.join(self.toplevel, ".osc/_project")) as f:
self._project = f.readline().strip()
except FileNotFoundError:

Check notice

Code scanning / CodeQL

Empty except Note

'except' clause does nothing but pass and there is no explanatory comment.
git_scm.warn_experimental()
else:
store = None
except oscerr.NoWorkingCopy:

Check notice

Code scanning / CodeQL

Empty except Note

'except' clause does nothing but pass and there is no explanatory comment.
store = git_scm.GitStore(path, check)
if print_warnings:
git_scm.warn_experimental()
except oscerr.NoWorkingCopy:

Check notice

Code scanning / CodeQL

Empty except Note

'except' clause does nothing but pass and there is no explanatory comment.
@dmach dmach force-pushed the fix_local_build-v2 branch 2 times, most recently from 104370f to 508ea4c Compare November 29, 2024 08:25
dmach and others added 3 commits November 29, 2024 16:36
The fields were made optional because scmsync packages don't provide them
osc did not find it's store and was unable to run a local build
in a project git
@dmach dmach force-pushed the fix_local_build-v2 branch from 508ea4c to a6db8ad Compare November 29, 2024 15:37
Copy link

codecov bot commented Nov 29, 2024

Codecov Report

Attention: Patch coverage is 55.55556% with 24 lines in your changes missing coverage. Please review.

Project coverage is 34.06%. Comparing base (7e159bf) to head (a6db8ad).
Report is 51 commits behind head on master.

Files with missing lines Patch % Lines
osc/commandline.py 0.00% 12 Missing ⚠️
osc/core.py 12.50% 7 Missing ⚠️
osc/git_scm/store.py 85.00% 3 Missing ⚠️
osc/store.py 81.81% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1669      +/-   ##
==========================================
- Coverage   35.03%   34.06%   -0.98%     
==========================================
  Files         142      142              
  Lines       20640    21453     +813     
==========================================
+ Hits         7232     7308      +76     
- Misses      13408    14145     +737     

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

@dmach dmach merged commit cc7b7cc into openSUSE:master Nov 29, 2024
23 of 26 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