Skip to content

Commit 641399c

Browse files
committed
fix violations
1 parent a6c9b5f commit 641399c

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

ruff.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,6 @@ parametrize-values-type = "tuple"
3535
"PLC2701", # Allow importing internal files needed for testing
3636
"PLR6301", # Allow 'self' parameter in method definitions (required for test stubs)
3737
"ARG002", # Allow unused arguments in instance methods (required for test stubs)
38+
"S404", # Allow importing 'subprocess' module to testing call external tools needed by these hooks
39+
3840
]

src/pre_commit_terraform/_cli.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ def invoke_cli_app(cli_args: list[str]) -> ReturnCodeType:
3636
try:
3737
return invoke_cli_app(parsed_cli_args)
3838
except PreCommitTerraformExit as exit_err:
39-
# T201 - FIXME here and below - we will replace 'print' with logging later
39+
# T201 - FIXME here and below - we will replace 'print' with
40+
# logging later
4041
print(f'App exiting: {exit_err !s}', file=sys.stderr) # noqa: T201
4142
raise
4243
except PreCommitTerraformRuntimeError as unhandled_exc:

0 commit comments

Comments
 (0)