Taneli Leppä
ebc1950ec1
Change tfdoc pre-commit hook script to use while read instead of xargs. While ( #2717 )
...
probably a bit slower, this works reliably on Linux and OS X. (BSD and GNU
xargs are unfortunately with different arguments) Also added option to set
Python binary (eg. export PYTHON=python3).
2024-11-19 09:01:15 +01:00
Wiktor Niesiobędzki
1f40f2e573
Add support for different endpoint types for Cloud NAT
2024-06-14 15:37:58 +02:00
Wiktor Niesiobędzki
0160392184
use /bin/sh for pre-commit script for portability
2024-06-07 08:15:33 +02:00
Alberto Geniola
61737c48a3
Change shebang on pre-commit checks ( #2343 )
...
Co-authored-by: Alberto Geniola <geniola@google.com >
2024-06-05 19:55:08 +02:00
Wiktor Niesiobędzki
f8f18734f1
Add pre-commit hook configuration ( #2326 )
...
* Pre-commit config
Run following linters on commit:
Terraform:
- terraform fmt
- terraform tflint
Python specific:
- yapf
Shell scripts
- shellcheck
- shfmt
YAML files:
- yamllint (disabled as of now)
- check-yaml
Other:
- end-of-file-fixer
- trailing-whitespace fixer
Fabric specific
- tools/tfdoc.py
- tools/check_boilerplate.py
* linting fixes
* Fix boilerplate check
2024-05-30 19:35:09 +02:00