Skip to content

Commit

Permalink
Merge pull request #162 from balihb/fix-hook-execution
Browse files Browse the repository at this point in the history
Fix hook execution race condition
  • Loading branch information
JanuszNowak authored Nov 6, 2024
2 parents 31b7883 + c9c9eaf commit ee2427f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@ repos:
language: system
entry: pwsh -File ./az_bicep_build.ps1
pass_filenames: true
files: .*.bicep$
files: .*\.bicep$
- id: check-azure-bicep-format
name: check-azure-bicep-format
language: system
entry: pwsh -File ./az_bicep_format.ps1
pass_filenames: true
files: .*.bicep$
files: .*\.bicep$
14 changes: 10 additions & 4 deletions .pre-commit-hooks.yaml
Original file line number Diff line number Diff line change
@@ -1,25 +1,31 @@
- id: check-azure-bicep
name: az bicep build
language: script
require_serial: true
entry: az_bicep_build.ps1
files: .*.bicep$
files: .*\.bicep$

- id: check-azure-bicep-python
name: az bicep build (python)
language: python
pass_filenames: false
require_serial: true
entry: entry_az_bicep_build
files: .*.bicep$
files: .*\.bicep$
additional_dependencies: ['azure-cli']

- id: check-azure-bicep-format
name: az bicep format
language: script
require_serial: true
entry: az_bicep_format.ps1
files: .*.bicep$
files: .*\.bicep$

- id: check-azure-bicep-format-python
name: az bicep format (python)
language: python
pass_filenames: false
require_serial: true
entry: entry_az_bicep_format
files: .*.bicep$
files: .*\.bicep$
additional_dependencies: ['azure-cli']

0 comments on commit ee2427f

Please sign in to comment.