browsertrix/.pre-commit-config.yaml
Ilya Kreymer feb7ab7652
Improved type checking for backend with mypy (#1174)
* add mypy type check
- run type check on backend fix ambiguous typing issues
- add mypy to lint gh action + precommit hook
- add mypy.ini
2023-09-13 19:40:26 -07:00

35 lines
730 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: mypy
name: mypy
entry: cd backend && mypy
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