From b18c9dc4f8f36eeddc8753257992e81c3fcf6322 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9gis=20Behmo?= Date: Mon, 8 Nov 2021 15:41:35 +0100 Subject: [PATCH] fix: lint unused arguments in code base --- Makefile | 2 +- tutor/bindmounts.py | 4 ++-- tutor/env.py | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 910f93c..a7268ba 100644 --- a/Makefile +++ b/Makefile @@ -32,7 +32,7 @@ test-format: ## Run code formatting tests black --check --diff $(BLACK_OPTS) test-lint: ## Run code linting tests - pylint --errors-only --enable=unused-import --ignore=templates ${SRC_DIRS} + pylint --errors-only --enable=unused-import,unused-argument --ignore=templates ${SRC_DIRS} test-unit: ## Run unit tests python -m unittest discover tests diff --git a/tutor/bindmounts.py b/tutor/bindmounts.py index bbefca7..3f25d6e 100644 --- a/tutor/bindmounts.py +++ b/tutor/bindmounts.py @@ -73,8 +73,8 @@ def parse_volumes(docker_compose_args: List[str]) -> Tuple[List[str], List[str]] @click.option("-v", "--volume", "volumes", multiple=True) @click.argument("args", nargs=-1) def custom_docker_compose( - volumes: List[str], args: List[str] - ) -> None: # pylint: disable=unused-argument + volumes: List[str], args: List[str] # pylint: disable=unused-argument + ) -> None: pass if isinstance(docker_compose_args, tuple): diff --git a/tutor/env.py b/tutor/env.py index 7639415..4cd8c48 100644 --- a/tutor/env.py +++ b/tutor/env.py @@ -222,7 +222,7 @@ def save(root: str, config: Config) -> None: fmt.echo_info("Environment generated in {}".format(base_dir(root))) -def upgrade_obsolete(root: str) -> None: +def upgrade_obsolete(_root: str) -> None: """ Add here ad-hoc commands to upgrade the environment. """