fix: lint unused arguments in code base
This commit is contained in:
parent
28edf106c4
commit
b18c9dc4f8
2
Makefile
2
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
|
||||
|
|
|
@ -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):
|
||||
|
|
|
@ -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.
|
||||
"""
|
||||
|
|
Loading…
Reference in New Issue