browsertrix/.pre-commit-config.yaml
Tessa Walsh 9224f52f51
Remove config from list endpoints to speed up responses (#1193)
* Remove config from list endpoints

- Remove config field from workflow and crawl list endpoints
- Add seedCount to CrawlConfigOut on backend and Workflow on frontend
- Refactor CrawlConfig and CrawlConfigOut to extend CrawlConfigCore + CrawlConfigAdditional
- Refactor workflow list in frontend to use firstSeed and seedCount
- Frontend uses ListWorkflow type which is Omit<Workflow, "config">
2023-09-19 11:05:48 -05:00

36 lines
753 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
language: 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