Skip to content

Commit 45a108c

Browse files
committed
N806 - Variable procArgs in function should be lowercase
1 parent fbca0fd commit 45a108c

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

src/pre_commit_terraform/terraform_docs_replace.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -74,11 +74,11 @@ def invoke_cli_app(parsed_cli_args: Namespace) -> ReturnCodeType:
7474

7575
for directory in dirs:
7676
try:
77-
procArgs = []
78-
procArgs.append('terraform-docs')
77+
proc_args = []
78+
proc_args.append('terraform-docs')
7979
if cast_to('bool', parsed_cli_args.sort):
80-
procArgs.append('--sort-by-required')
81-
procArgs.extend(
80+
proc_args.append('--sort-by-required')
81+
proc_args.extend(
8282
(
8383
'md',
8484
f'./{directory}',
@@ -89,7 +89,7 @@ def invoke_cli_app(parsed_cli_args: Namespace) -> ReturnCodeType:
8989
),
9090
),
9191
)
92-
subprocess.check_call(' '.join(procArgs), shell=True)
92+
subprocess.check_call(' '.join(proc_args), shell=True)
9393
except subprocess.CalledProcessError as e:
9494
print(e)
9595
retval = ReturnCode.ERROR

0 commit comments

Comments
 (0)