Skip to content

Commit 0441b68

Browse files
committed
Fix fixable part of WPS324
1 parent 7d54fe4 commit 0441b68

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

.flake8

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,6 @@ per-file-ignores =
8181
WPS226,
8282
# WPS115: "Require snake_case for naming class attributes" -- testing legitimate case, ignored in main code
8383
WPS115,
84-
# WPS324: "Enforce consistent return statements" - there just 1 return statement in these test, so it's can't be inconsistent
85-
WPS324,
8684
# We will not spend time on fixing complexity in deprecated hook
8785
src/pre_commit_terraform/terraform_docs_replace.py: WPS232
8886

tests/pytest/_cli_test.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ def populate_argument_parser(
5555
self,
5656
subcommand_parser: ArgumentParser,
5757
) -> None:
58-
return None
58+
pass # noqa: WPS420. This is a stub, docstring not needed so "pass" required.
5959

6060
def invoke_cli_app(self, parsed_cli_args: Namespace) -> ReturnCodeType:
6161
raise raised_error
@@ -85,7 +85,7 @@ def populate_argument_parser(
8585
self,
8686
subcommand_parser: ArgumentParser,
8787
) -> None:
88-
return None
88+
pass # noqa: WPS420. This is a stub, docstring not needed so "pass" required.
8989

9090
def invoke_cli_app(self, parsed_cli_args: Namespace) -> ReturnCodeType:
9191
raise PreCommitTerraformExit(self.CLI_SUBCOMMAND_NAME)

0 commit comments

Comments
 (0)