Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
pre-commit-hooks
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
nimrod
pre-commit-hooks
Compare revisions
ca5151ee77e0d9d592ed872cf47e570119d81690 to b72abe1164915700a68765ba395a932dd81ec179
Compare revisions
Changes are shown as if the
source
revision was being merged into the
target
revision.
Learn more about comparing revisions.
Source
nimrod/pre-commit-hooks
Select target project
No results found
b72abe1164915700a68765ba395a932dd81ec179
Select Git revision
Branches
main
Tags
v0.1.0
v0.2.0
v0.3.0
v0.4.0
v0.5.0
v0.5.1
v0.5.2
8 results
Swap
Target
nimrod/pre-commit-hooks
Select target project
nimrod/pre-commit-hooks
1 result
ca5151ee77e0d9d592ed872cf47e570119d81690
Select Git revision
Branches
main
Tags
v0.1.0
v0.2.0
v0.3.0
v0.4.0
v0.5.0
v0.5.1
v0.5.2
8 results
Show changes
Only incoming changes from source
Include changes to target since source was created
Compare
Commits on Source (2)
pre-commit: autoupdate.
· 18298468
nimrod
authored
5 months ago
18298468
Fix for the Terraform validate hook.
· b72abe11
nimrod
authored
5 months ago
Check for the right CLI.
b72abe11
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
.pre-commit-config.yaml
+13
-13
13 additions, 13 deletions
.pre-commit-config.yaml
hooks/terraform_validate.py
+1
-1
1 addition, 1 deletion
hooks/terraform_validate.py
with
14 additions
and
14 deletions
.pre-commit-config.yaml
View file @
b72abe11
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
exclude
:
test_files
exclude
:
test_files
repos
:
repos
:
-
repo
:
https://github.com/pre-commit/pre-commit-hooks.git
-
repo
:
https://github.com/pre-commit/pre-commit-hooks.git
rev
:
v
4
.0.
1
rev
:
v
5
.0.
0
hooks
:
hooks
:
-
id
:
check-added-large-files
-
id
:
check-added-large-files
-
id
:
check-executables-have-shebangs
-
id
:
check-executables-have-shebangs
...
@@ -15,17 +15,17 @@ repos:
...
@@ -15,17 +15,17 @@ repos:
-
id
:
trailing-whitespace
-
id
:
trailing-whitespace
-
repo
:
https://github.com/codespell-project/codespell.git
-
repo
:
https://github.com/codespell-project/codespell.git
rev
:
v2.
1
.0
rev
:
v2.
3
.0
hooks
:
hooks
:
-
id
:
codespell
-
id
:
codespell
-
repo
:
https://github.com/Yelp/detect-secrets.git
-
repo
:
https://github.com/Yelp/detect-secrets.git
rev
:
v1.
1
.0
rev
:
v1.
5
.0
hooks
:
hooks
:
-
id
:
detect-secrets
-
id
:
detect-secrets
-
repo
:
https://gitlab.com/devopshq/gitlab-ci-linter
-
repo
:
https://gitlab.com/devopshq/gitlab-ci-linter
rev
:
v1.0.
2
rev
:
v1.0.
6
hooks
:
hooks
:
-
id
:
gitlab-ci-linter
-
id
:
gitlab-ci-linter
args
:
args
:
...
@@ -33,24 +33,24 @@ repos:
...
@@ -33,24 +33,24 @@ repos:
-
https://git.shore.co.il
-
https://git.shore.co.il
-
repo
:
https://github.com/amperser/proselint.git
-
repo
:
https://github.com/amperser/proselint.git
rev
:
0.1
0.2
rev
:
0.1
4.0
hooks
:
hooks
:
-
id
:
proselint
-
id
:
proselint
types
:
[
plain-text
]
types
:
[
plain-text
]
exclude
:
LICENSE
exclude
:
LICENSE
-
repo
:
https://github.com/adrienverge/yamllint.git
-
repo
:
https://github.com/adrienverge/yamllint.git
rev
:
v1.
26.3
rev
:
v1.
35.1
hooks
:
hooks
:
-
id
:
yamllint
-
id
:
yamllint
-
repo
:
https://github.com/executablebooks/mdformat.git
-
repo
:
https://github.com/executablebooks/mdformat.git
rev
:
0.7.
9
rev
:
0.7.
21
hooks
:
hooks
:
-
id
:
mdformat
-
id
:
mdformat
-
repo
:
https://github.com/ambv/black.git
-
repo
:
https://github.com/ambv/black.git
rev
:
2
3
.1
2.1
rev
:
2
4
.1
0.0
hooks
:
hooks
:
-
id
:
black
-
id
:
black
args
:
args
:
...
@@ -58,7 +58,7 @@ repos:
...
@@ -58,7 +58,7 @@ repos:
--line-length=79
--line-length=79
-
repo
:
https://github.com/PyCQA/prospector.git
-
repo
:
https://github.com/PyCQA/prospector.git
rev
:
v1.1
0
.3
rev
:
v1.1
3
.3
hooks
:
hooks
:
-
id
:
prospector
-
id
:
prospector
args
:
args
:
...
@@ -82,7 +82,7 @@ repos:
...
@@ -82,7 +82,7 @@ repos:
-
bandit
-
bandit
-
repo
:
https://github.com/pycqa/flake8.git
-
repo
:
https://github.com/pycqa/flake8.git
rev
:
3.9.2
rev
:
7.1.1
hooks
:
hooks
:
-
id
:
flake8
-
id
:
flake8
args
:
args
:
...
@@ -92,16 +92,16 @@ repos:
...
@@ -92,16 +92,16 @@ repos:
-
flake8-bugbear
-
flake8-bugbear
-
repo
:
https://github.com/pre-commit/pre-commit.git
-
repo
:
https://github.com/pre-commit/pre-commit.git
rev
:
v
2.15.0
rev
:
v
4.0.1
hooks
:
hooks
:
-
id
:
validate_manifest
-
id
:
validate_manifest
-
repo
:
https://git.shore.co.il/nimrod/pre-commit-hooks.git
-
repo
:
https://git.shore.co.il/nimrod/pre-commit-hooks.git
rev
:
v0.
1.0
rev
:
v0.
5.1
hooks
:
hooks
:
-
id
:
shell-validate
-
id
:
shell-validate
-
repo
:
https://github.com/shellcheck-py/shellcheck-py.git
-
repo
:
https://github.com/shellcheck-py/shellcheck-py.git
rev
:
v0.
7.2
.1
rev
:
v0.
10.0
.1
hooks
:
hooks
:
-
id
:
shellcheck
-
id
:
shellcheck
This diff is collapsed.
Click to expand it.
hooks/terraform_validate.py
View file @
b72abe11
...
@@ -36,7 +36,7 @@ def main():
...
@@ -36,7 +36,7 @@ def main():
parser
=
argparse
.
ArgumentParser
(
description
=
__doc__
)
parser
=
argparse
.
ArgumentParser
(
description
=
__doc__
)
parser
.
add_argument
(
"
file
"
,
nargs
=
"
+
"
,
type
=
pathlib
.
Path
)
parser
.
add_argument
(
"
file
"
,
nargs
=
"
+
"
,
type
=
pathlib
.
Path
)
args
=
parser
.
parse_args
()
args
=
parser
.
parse_args
()
hooks
.
utils
.
check_executable
(
"
terraform
"
)
hooks
.
utils
.
check_executable
(
TF_CLI
)
os
.
putenv
(
"
TF_INPUT
"
,
"
0
"
)
os
.
putenv
(
"
TF_INPUT
"
,
"
0
"
)
os
.
putenv
(
"
TF_IN_AUTOMATION
"
,
"
1
"
)
os
.
putenv
(
"
TF_IN_AUTOMATION
"
,
"
1
"
)
return
hooks
.
utils
.
bulk_check
(
return
hooks
.
utils
.
bulk_check
(
...
...
This diff is collapsed.
Click to expand it.