Skip to content

Commit

Permalink
OPS-0 fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
snovikov committed Jun 17, 2024
1 parent 13cb636 commit a8fa34f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
4 changes: 3 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,8 @@ _code-pylint:
-v $(PWD):/data \
--entrypoint=sh \
cytopia/pylint:$(PYLINT_VERSION) -c '\
pip3 install -r requirements.txt \
apk add py3-pip \
&& pip3 install -r requirements.txt \
&& pylint --rcfile=setup.cfg $(SRC)/'

.PHONY: _code-black
Expand Down Expand Up @@ -223,6 +224,7 @@ test:
@echo "Check Python package"
docker run \
--rm \
--network=host \
$$(tty -s && echo "-it" || echo) \
-v $(PWD):/data \
-w /data \
Expand Down
9 changes: 5 additions & 4 deletions pagey/args.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,11 @@ def get_args() -> argparse.Namespace:
parser = argparse.ArgumentParser(
formatter_class=argparse.RawTextHelpFormatter,
add_help=False,
usage="""%(prog)s
%(prog)s -v, --version
%(prog)s -h, --help"""
% ({"prog": DEF_NAME}),
usage=(
f"{DEF_NAME}\n"
f"{DEF_NAME} -v, --version\n"
f"{DEF_NAME} -h, --help\n"
),
description=DEF_DESC
+ """
Expand Down

0 comments on commit a8fa34f

Please sign in to comment.