Skip to content

Commit 9b02536

Browse files
authored
chore: Update essential configurations (#743)
Let VS Code know about Python code location
1 parent d4a9e90 commit 9b02536

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

.vscode/settings.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,8 @@
77
"code-block-style": false
88
},
99
"markdown.validate.enabled": true,
10+
"python.analysis.extraPaths": [
11+
"./src",
12+
"./tests/pytest"
13+
],
1014
}

pyproject.toml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,18 +27,17 @@ upstreaming = [
2727
name = 'pre-commit-terraform'
2828
classifiers = [
2929
'License :: OSI Approved :: MIT License',
30-
3130
'Programming Language :: Python :: 3',
31+
'Programming Language :: Python :: 3 :: Only',
3232
'Programming Language :: Python :: 3.9',
3333
'Programming Language :: Python :: 3.10',
3434
'Programming Language :: Python :: 3.11',
3535
'Programming Language :: Python :: 3.12',
3636
'Programming Language :: Python :: 3.13',
37-
3837
'Programming Language :: Python :: Implementation :: CPython',
3938
'Programming Language :: Python :: Implementation :: PyPy',
4039
]
41-
description = 'Pre-commit hooks for terraform_docs_replace'
40+
description = 'Pre-commit hooks for Terraform, OpenTofu, Terragrunt and related tools'
4241
dependencies = []
4342
dynamic = [
4443
'urls',

src/pre_commit_terraform/terraform_docs_replace.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,14 @@
1212
import subprocess # noqa: S404
1313
import warnings
1414
from argparse import ArgumentParser, Namespace
15+
from typing import Final
1516
from typing import cast as cast_to
1617

1718
from ._structs import ReturnCode
1819
from ._types import ReturnCodeType
1920

2021

21-
CLI_SUBCOMMAND_NAME: str = 'replace-docs'
22+
CLI_SUBCOMMAND_NAME: Final[str] = 'replace-docs'
2223

2324

2425
def populate_argument_parser(subcommand_parser: ArgumentParser) -> None:

0 commit comments

Comments
 (0)