Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jul 1, 2024
1 parent f16f84c commit 7028b2d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
3 changes: 1 addition & 2 deletions src/conda_package_handling/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@
from .exceptions import ConversionError, InvalidArchiveError # NOQA
from .interface import AbstractBaseFormat
from .tarball import CondaTarBZ2 as _CondaTarBZ2
from .utils import ensure_list
from .utils import filter_info_files
from .utils import ensure_list, filter_info_files
from .utils import get_executor as _get_executor
from .utils import rm_rf as _rm_rf

Expand Down
6 changes: 4 additions & 2 deletions src/conda_package_handling/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ def build_parser():
dest="components",
default="info,pkg",
help="Comma-separated list of components to read (.conda artifacts only; "
"ignored for .tar.bz2). Allowed values: info, pkg."
"ignored for .tar.bz2). Allowed values: info, pkg.",
)

return parser
Expand Down Expand Up @@ -155,7 +155,9 @@ def main(args=None):
pprint(failed_files)
sys.exit(1)
elif args.subcommand in ("list", "l"):
components = [component.strip() for component in (args.components or "info,pkg").split(",")]
components = [
component.strip() for component in (args.components or "info,pkg").split(",")
]
api.list_contents(args.archive_path, verbose=args.verbose, components=components)


Expand Down

0 comments on commit 7028b2d

Please # to comment.