Skip to content

Commit

Permalink
adjustments from review
Browse files Browse the repository at this point in the history
  • Loading branch information
tarioch committed Sep 27, 2021
1 parent 57aa067 commit 1fcbc87
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
## Usage

```
- repo: https://github.com/tarioch/pre-commit-hooks
- repo: https://github.com/tarioch/pre-commit-flux
rev: v0.1.0
hooks:
- id: check-flux-helm-values
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import subprocess
import sys
import tempfile

from shlex import quote
import yaml


Expand Down Expand Up @@ -58,7 +58,7 @@ def _validateFile(fileToValidate, repos):
yaml.dump(definition["spec"]["values"], valuesFile)

res = subprocess.run(
f"helm pull --repo {chartUrl} --version '{chartVersion}' {chartName}",
f"helm pull --repo {quote(chartUrl)} --version '{quote(chartVersion)}' {quote(chartName)}",
shell=True,
cwd=tmpDir,
text=True,
Expand Down
4 changes: 2 additions & 2 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[metadata]
name = pre_commit_hooks
name = pre_commit_flux

[options]
packages = find:
Expand All @@ -9,4 +9,4 @@ install_requires =

[options.entry_points]
console_scripts =
check-flux-helm-values = pre_commit_hooks.check_flux_helm_values:main
check-flux-helm-values = pre_commit_flux.check_flux_helm_values:main

0 comments on commit 1fcbc87

Please sign in to comment.