-
Notifications
You must be signed in to change notification settings - Fork 22
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
Reduce unnecessary temporary list creation #2061
Conversation
src/bci_build/package/__init__.py
Outdated
|
||
return None | ||
build_name = f"{self.registry_prefix}/{self.name}-{self.stability_tag or self._tag_variant}" |
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.
nit: having an or
in string formatting is also not that readable IMHO
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.
I'm not sure what the 👎 means but I can remove this part, it wasn't related to the commit message.
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.
The 👎 mean that I disagree. I find the code like this easier to understand
postfix temporary lists are hard to read and slow the code down (not that would matter). Plus, it produces headaches.
dc8fe7d
to
40d2136
Compare
Created a staging project on OBS for 16.0: home:defolos:BCI:Staging:16.0:16.0-2061 Build ResultsRepository
Repository
Repository
Repository
Repository
Repository
Repository
Repository
Build succeeded ✅ To run BCI-tests against this PR, use the following command: OS_VERSION=16.0 TARGET=custom BASEURL=registry.opensuse.org/home/defolos/bci/staging/16.0/16.0-2061/ tox -- -n auto The following images can be pulled from the staging project:
|
postfix temporary lists are hard to read and slow the code down (not that would matter). Plus, it produces headaches.