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
Changes from 1 commit
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
fdc98d6
Bump version to 1.0.1
rbanffy Mar 1, 2020
c1022a4
Fix failing Flake8 test
rbanffy Mar 1, 2020
7fd24d2
Update history
rbanffy Mar 1, 2020
36aa2bc
Add --no-chill command line option. Fixes #34
rbanffy Jan 18, 2021
672cee0
Merge branch 'develop' of github.com:rbanffy/pip-chill into develop
rbanffy Jan 18, 2021
9c32854
Remove click and add black to the requirements file
rbanffy Jan 18, 2021
07aa855
Version update
rbanffy Jan 18, 2021
486ddd9
Remove black - not a dev requirement
rbanffy Jan 18, 2021
49c066b
'Refactored by Sourcery' (#37)
sourcery-ai[bot] Jan 18, 2021
3cdce71
Update python-package.yml (#33)
rbanffy Jan 18, 2021
11603ab
Circleci project setup (#39)
rbanffy Jan 19, 2021
caece4b
Update README with --no-chill switch
rbanffy Jan 20, 2021
8932883
Update HISTORY and bump versions
rbanffy Jan 20, 2021
41f4846
Remove __future__ import (we don't need it anymore)
rbanffy Jan 27, 2021
ffadb97
We only support Python 3+
rbanffy Jan 27, 2021
c34b6b1
Add `ssort`
rbanffy Feb 8, 2022
bffb48a
Sort methods with `ssort`
rbanffy Feb 8, 2022
cf1bb31
Version bump
rbanffy Feb 8, 2022
743bdcb
Remove Python 3.5 support
rbanffy Feb 8, 2022
c3643cf
Remove Python 3.6 support and move 3.10 out of dev
rbanffy Feb 8, 2022
332b226
Upgrade macOS image to 13.2 (Xcode 13.2.1)
rbanffy Feb 8, 2022
5fe63f9
Time `tox` execution
rbanffy Feb 8, 2022
d0d7851
Update HISTORY.rst
rbanffy Feb 14, 2022
de0a6df
Update supported Python versions
rbanffy Feb 14, 2022
2dcb10e
Update Python image version
rbanffy Apr 14, 2023
fb53efe
Update HISTORY.rst
rbanffy Apr 14, 2023
62b053d
Update config.yml
rbanffy Apr 14, 2023
3df819d
Update config.yml
rbanffy Apr 14, 2023
bbae606
Added note so contributors start from the develop branch
rbanffy Apr 14, 2023
16b4668
Remove support for 3.6 in tests, add 3.10, 3.11
rbanffy Apr 14, 2023
5a9f92d
Update pip before installing travis-tox
rbanffy Apr 14, 2023
5844740
Add Python 3.11 to some platforms in travis
rbanffy Apr 14, 2023
9d4f398
Resolve: Inconsistent sort for "Installed as dependency for" (#64)
kevin-paulson-mindbridge-ai Apr 15, 2023
3520113
'Refactored by Sourcery' (#67)
sourcery-ai[bot] Apr 15, 2023
0267a57
Fix Flake8 flagged issues
Isaeiah Apr 15, 2023
a4abee3
Apply Black
Isaeiah Apr 15, 2023
2a3e9fc
Fix version numbers
Isaeiah Apr 15, 2023
e35b0f1
Fix f-strings
rbanffy Apr 15, 2023
fef8262
Merge branch 'main' into develop
rbanffy Apr 15, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix Flake8 flagged issues
  • Loading branch information
Isaeiah committed Apr 15, 2023
commit 0267a57b299acc68588a09857fad7215ceaca318
11 changes: 6 additions & 5 deletions pip_chill/pip_chill.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ def get_name_without_version(self):
Return the name of the package without a version.
"""
if self.required_by:
sorted_required_by = sorted(self.required_by)
return f'# {self.name} # Installed as dependency for {", ".join(sorted_required_by)}'
return f'# {self.name} # Installed as dependency for ' \
'{", ".join(sorted(self.required_by))}'
return self.name

def __lt__(self, other):
Expand All @@ -38,12 +38,13 @@ def __hash__(self):
return hash(self.name)

def __repr__(self):
return f'<{self.__module__}.{self.__class__.__name__} instance "{self.name}">'
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.


def __str__(self):
if self.required_by:
sorted_required_by = sorted(self.required_by)
return f'# {self.name}=={self.version} # Installed as dependency for {", ".join(sorted_required_by)}'
return f'# {self.name}=={self.version} # Installed as ' \
'dependency for {", ".join(sorted(self.required_by)}'
return f"{self.name}=={self.version}"


Expand Down