Skip to content

Commit b81933e

Browse files
committed
Template Manager: Suppress subprocess security warning from Ruff.
Also, update Git commit hooks configuration.
1 parent 18710c1 commit b81933e

3 files changed

Lines changed: 4 additions & 3 deletions

File tree

.auxiliary/configuration/pre-commit.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ repos:
4141
name: 'Check: Debug Statements (Python)'
4242

4343
- repo: https://github.com/astral-sh/ruff-pre-commit
44-
rev: v0.14.3
44+
rev: v0.15.9
4545
hooks:
4646
- id: ruff
4747
name: 'Lint: Ruff'

sources/emcdproj/template.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,8 @@ async def __call__(
9090
def copy_template( answers_file: __.Path, projectdir: __.Path ) -> None:
9191
''' Copies template to target directory using answers. '''
9292
_subprocess.run( # noqa: S603
93-
( 'copier', 'copy', '--data-file', str( answers_file ),
93+
( 'copier', 'copy', # noqa: S607
94+
'--data-file', str( answers_file ),
9495
'--defaults', '--overwrite', '--vcs-ref', 'HEAD',
9596
'.', str( projectdir ) ),
9697
cwd = __.Path( ), check = True )

template/.auxiliary/configuration/pre-commit.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ repos:
4141
name: 'Check: Debug Statements (Python)'
4242

4343
- repo: https://github.com/astral-sh/ruff-pre-commit
44-
rev: v0.14.3
44+
rev: v0.15.9
4545
hooks:
4646
- id: ruff
4747
name: 'Lint: Ruff'

0 commit comments

Comments
 (0)