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

Merge develop #66

Merged
merged 39 commits into from
Apr 15, 2023
Merged

Merge develop #66

merged 39 commits into from
Apr 15, 2023

Conversation

rbanffy
Copy link
Owner

@rbanffy rbanffy commented Apr 14, 2023

No description provided.

Copy link

@code-review-doctor code-review-doctor bot left a comment

Choose a reason for hiding this comment

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

Worth considering. View full project report here.

def __hash__(self):
return hash(self.name)

def __repr__(self):
return '<{}.{} instance "{}">'.format(

Choose a reason for hiding this comment

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

f-string is easier to read, write, and less computationally expensive than legacy string formatting. More details.


def __str__(self):
if self.required_by:
return "# {}=={} # Installed as dependency for {}".format(

Choose a reason for hiding this comment

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

Likewise, Consider using f-string instead.

return "# {}=={} # Installed as dependency for {}".format(
self.name, self.version, ", ".join(self.required_by)
)
return "{}=={}".format(self.name, self.version)

Choose a reason for hiding this comment

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

As above, Consider using f-string instead.

Bump version from current to 1.0.3
Use new Docker environment
Return to the Python orb approach
rbanffy and others added 8 commits April 14, 2023 20:48
* Added a --no-chill option (#36)

* Bump version to 1.0.1

* Fix failing Flake8 test

* Update history

* Add --no-chill command line option. Fixes #34

* Remove click and add black to the requirements file

* Version update

* Remove black - not a dev requirement

* 'Refactored by Sourcery' (#37)

Co-authored-by: Sourcery AI <>

Co-authored-by: sourcery-ai[bot] <58596630+sourcery-ai[bot]@users.noreply.github.com>

* Version 1.0.1 (#40)

* Bump version to 1.0.1

* Fix failing Flake8 test

* Update history

* Add --no-chill command line option. Fixes #34

* Remove click and add black to the requirements file

* Version update

* Remove black - not a dev requirement

* 'Refactored by Sourcery' (#37)

Co-authored-by: Sourcery AI <>

* Update python-package.yml (#33)

* Circleci project setup (#39)

* Add .circleci/config.yml

* Add .circleci/config.yml

* Add .circleci/config.yml

* Update README with --no-chill switch

Co-authored-by: sourcery-ai[bot] <58596630+sourcery-ai[bot]@users.noreply.github.com>

* Update github repo url (#50)

* Fix GitHub repo URL (#56)

Will fix Travis tests later

* Sort required_by

* Update README to match new output

* Update github repo url (#50)

* Fix GitHub repo URL (#56)

Will fix Travis tests later

* Sort required_by

* Update README to match new output

* Add to AUTHORS

---------

Co-authored-by: Ricardo Bánffy <[email protected]>
Co-authored-by: sourcery-ai[bot] <58596630+sourcery-ai[bot]@users.noreply.github.com>
Co-authored-by: AndrejK <[email protected]>
Co-authored-by: xatier <[email protected]>
Co-authored-by: Sourcery AI <>
Copy link

@code-review-doctor code-review-doctor bot left a comment

Choose a reason for hiding this comment

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

Looks good. Worth considering though. View full project report here.

def __repr__(self):
return (
f'<{self.__module__}.{self.__class__.__name__} instance "'
'{self.name}">'

Choose a reason for hiding this comment

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

Suggested change
'{self.name}">'
f'{self.name}">'

If this was meant to be f-string then f prefix is missing. More details.

@rbanffy rbanffy merged commit ba5149f into main Apr 15, 2023
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.

None yet

3 participants