Skip to content

Commit 6c2c7af

Browse files
committed
Apply review suggestions
1 parent 0441b68 commit 6c2c7af

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

.flake8

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,6 @@ extend-ignore =
5353
# WPS300: "Forbid imports relative to the current folder" -- we use relative imports
5454
WPS300,
5555

56-
# WPS410: "Forbid some module-level variables" -- __all__ is a legitimate use case
57-
allowed-module-metadata=__all__
58-
5956
# https://wemake-python-styleguide.readthedocs.io/en/latest/pages/usage/formatter.html
6057
#format = wemake
6158

@@ -106,3 +103,6 @@ pytest-mark-no-parentheses = true
106103

107104
# wemake-python-styleguide
108105
show-source = true
106+
107+
# WPS410: "Forbid some module-level variables" -- __all__ is a legitimate use case
108+
allowed-module-metadata=__all__

src/pre_commit_terraform/_types.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ class CLISubcommandModuleProtocol(Protocol):
1515
"""A protocol for the subcommand-implementing module shape."""
1616

1717
# WPS115: "Require snake_case for naming class attributes".
18+
# This protocol describes module shapes and not regular classes.
1819
# It's a valid use case as then it's used as constants:
1920
# "CLI_SUBCOMMAND_NAME: Final[str] = 'hook-name'"" on top level
2021
CLI_SUBCOMMAND_NAME: str # noqa: WPS115

0 commit comments

Comments
 (0)