File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff 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
108105show-source = true
106+
107+ # WPS410: "Forbid some module-level variables" -- __all__ is a legitimate use case
108+ allowed-module-metadata =__all__
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments