Skip to content
Merged
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -177,3 +177,8 @@ pyrightconfig.json
# End of https://www.toptal.com/developers/gitignore/api/python

tests/results/*

# Python
__pycache__/
*.py[cod]
node_modules/
4 changes: 4 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,8 @@
"code-block-style": false
},
"markdown.validate.enabled": true,
"python.analysis.extraPaths": [
"./src",
"./tests/pytest"
],
}
5 changes: 2 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,18 +27,17 @@ upstreaming = [
name = 'pre-commit-terraform'
classifiers = [
'License :: OSI Approved :: MIT License',

'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3 :: Only',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
'Programming Language :: Python :: 3.13',

'Programming Language :: Python :: Implementation :: CPython',
'Programming Language :: Python :: Implementation :: PyPy',
]
description = 'Pre-commit hooks for terraform_docs_replace'
description = 'Pre-commit hooks for Terraform, OpenTofu, Terragrunt and related tools'
dependencies = []
dynamic = [
'urls',
Expand Down
3 changes: 2 additions & 1 deletion src/pre_commit_terraform/terraform_docs_replace.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,14 @@
import subprocess # noqa: S404
import warnings
from argparse import ArgumentParser, Namespace
from typing import Final
from typing import cast as cast_to

from ._structs import ReturnCode
from ._types import ReturnCodeType


CLI_SUBCOMMAND_NAME: str = 'replace-docs'
CLI_SUBCOMMAND_NAME: Final[str] = 'replace-docs'


def populate_argument_parser(subcommand_parser: ArgumentParser) -> None:
Expand Down
Loading