Skip to content

Commit

Permalink
chore: delete legacy script, fix lint, bump deps, better coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
Justintime50 committed Mar 25, 2023
1 parent c3eb2a6 commit b85017c
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 61 deletions.
9 changes: 0 additions & 9 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,6 @@ on:
- '**/*.py'

jobs:
sh-checker:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v3
- name: Run sh-checker
uses: luizm/action-sh-checker@master
env:
SHFMT_OPTS: -i 4 -d
lint:
runs-on: ubuntu-latest
steps:
Expand Down
44 changes: 0 additions & 44 deletions legacy/pippin.sh

This file was deleted.

5 changes: 4 additions & 1 deletion pip_tree/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,10 @@ def __init__(self):
required=False,
default=pip_tree.SITE_PACKAGES_PATH,
type=str,
help='The path to the site-packages directory of a Python virtual environment. If a path is not provided, the virtual environment Pip Tree is run from will be used.', # noqa
help=(
'The path to the site-packages directory of a Python virtual environment. If a path is not provided,'
' the virtual environment Pip Tree is run from will be used.'
),
)
parser.parse_args(namespace=self)

Expand Down
5 changes: 1 addition & 4 deletions pip_tree/tree.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,7 @@ def _generate_reverse_requires_field(required_by_data: Dict[str, List[str]], pac
for required_by_package in requires_list:
word = re.compile(r'^(\w)+')
name_match = word.match(required_by_package)
if name_match is not None:
required_by_package_name = name_match.group()
else:
required_by_package_name = ''
required_by_package_name = name_match.group() if name_match is not None else ''

# If a package is listed, append to it, otherwise create a new list
if required_by_data.get(required_by_package_name):
Expand Down
6 changes: 3 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@
DEV_REQUIREMENTS = [
'bandit == 1.7.*',
'black == 22.*',
'build == 0.7.*',
'flake8 == 4.*',
'build == 0.10.*',
'flake8 == 5.*',
'isort == 5.*',
'mypy == 0.942',
'mypy == 1.1.*',
'pytest == 7.*',
'pytest-cov == 4.*',
'twine == 4.*',
Expand Down

0 comments on commit b85017c

Please sign in to comment.