Skip to content

Commit 8c3d385

Browse files
committed
Address review suggestions
#831 (comment)
1 parent 8dc8451 commit 8c3d385

File tree

6 files changed

+6
-0
lines changed

6 files changed

+6
-0
lines changed

ruff.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ ignore = [
2020

2121
[lint.isort]
2222
force-single-line = true
23+
lines-after-imports = 2
2324

2425
[lint.per-file-ignores]
2526
# Ignore in the `tests/` directory.

src/pre_commit_terraform/__main__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,6 @@
55

66
from ._cli import invoke_cli_app
77

8+
89
return_code = invoke_cli_app(argv[1:])
910
exit_with_return_code(return_code)

src/pre_commit_terraform/_cli_subcommands.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
from . import terraform_docs_replace
44
from ._types import CLISubcommandModuleProtocol
55

6+
67
SUBCOMMAND_MODULES: list[CLISubcommandModuleProtocol] = [
78
terraform_docs_replace,
89
]

src/pre_commit_terraform/_types.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
from ._structs import ReturnCode
1010

11+
1112
ReturnCodeType = Union[ReturnCode, int] # Union instead of pipe for Python 3.9
1213
CLIAppEntryPointCallableType = Callable[[Namespace], ReturnCodeType]
1314

src/pre_commit_terraform/terraform_docs_replace.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
from ._structs import ReturnCode
1111
from ._types import ReturnCodeType
1212

13+
1314
CLI_SUBCOMMAND_NAME: str = 'replace-docs'
1415

1516

tests/pytest/_cli_test.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
from pre_commit_terraform._structs import ReturnCode
1414
from pre_commit_terraform._types import ReturnCodeType
1515

16+
1617
pytestmark = pytest.mark.filterwarnings(
1718
'ignore:`terraform_docs_replace` hook is DEPRECATED.:UserWarning:'
1819
'pre_commit_terraform.terraform_docs_replace',

0 commit comments

Comments
 (0)