fix: lint unused arguments in code base

This commit is contained in:
Régis Behmo 2021-11-08 15:41:35 +01:00 committed by Régis Behmo
parent 28edf106c4
commit b18c9dc4f8
3 changed files with 4 additions and 4 deletions

View File

@ -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

View File

@ -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):

View File

@ -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.
"""