Skip to content

Commit b309d69

Browse files
committed
Address review suggestions and DOC501
#831 (comment)
1 parent 71e794e commit b309d69

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

ruff.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ target-version = "py39"
33

44
line-length = 79 # To decrease PR diff size
55

6+
namespace-packages = ["src/pre_commit_terraform/", "tests/pytest/"]
7+
68
[format]
79
quote-style = "single"
810

@@ -17,7 +19,6 @@ select = ["ALL"]
1719
preview = true
1820
ignore = [
1921
"CPY001", # Missing copyright notice at top of file
20-
"INP001", # We use namespace packages in this project
2122
]
2223

2324
[lint.isort]

src/pre_commit_terraform/_cli.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ def invoke_cli_app(cli_args: list[str]) -> ReturnCodeType:
2222
Returns:
2323
ReturnCodeType: The return code of the app.
2424
25+
Raises:
26+
PreCommitTerraformExit: If the app is exiting with error.
2527
"""
2628
root_cli_parser = initialize_argument_parser()
2729
parsed_cli_args = root_cli_parser.parse_args(cli_args)

tests/pytest/_cli_test.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
from argparse import ArgumentParser, Namespace
44

55
import pytest
6-
76
from pre_commit_terraform import _cli_parsing as _cli_parsing_mod
87
from pre_commit_terraform._cli import invoke_cli_app
98
from pre_commit_terraform._errors import (

0 commit comments

Comments
 (0)