browsertrix/.pre-commit-config.yaml
Anish Lakhwara b5a9c42df1
feat: add pre-commit to check we don't have real passwords in yml files (#990)
* feat: use existing pre-commit framework

* feat(ci): add github action for password_check

* feat: add some simple tests to password_check.py

* fix: set `backend_password_secret` in default values.yaml to an allowed password
2023-07-26 13:29:37 -07:00

29 lines
615 B
YAML

repos:
- repo: https://github.com/psf/black
rev: 22.12.0
hooks:
- id: black
args: ["backend/btrixcloud/"]
- repo: local
hooks:
- id: pylint
name: pylint
entry: cd backend && pylint
language: system
types: [python]
args: ["btrixcloud/"]
- repo: local
hooks:
- id: husky-run-pre-commit
name: husky
language: system
entry: frontend/.husky/pre-commit
pass_filenames: false
- repo: local
hooks:
- id: password-check
name: password-check
language: system
types: [yaml]
entry: python3 scripts/check_passwords.py