.pre-commit-config.yaml•1.59 kB
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
# - id: no-commit-to-branch # prevent direct commits to the `main` branch
- id: check-yaml
- id: check-toml
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/codespell-project/codespell
# Configuration for codespell is in pyproject.toml
rev: v2.3.0
hooks:
- id: codespell
- repo: local
hooks:
- id: format-ts
name: format typescript
entry: make
args: [format-ts]
language: system
types_or: [javascript, ts, json]
pass_filenames: false
- id: lint-ts
name: lint typescript
entry: make
args: [lint-ts]
language: system
types_or: [javascript, ts, json]
pass_filenames: false
- id: typecheck-ts
name: typecheck typescript
entry: make
args: [typecheck-ts]
language: system
types_or: [javascript, ts, json]
pass_filenames: false
- id: format-py
name: format python
entry: make
args: [format-py]
language: system
types: [python]
pass_filenames: false
- id: lint-py
name: lint python
entry: make
args: [lint-py]
language: system
types: [python]
pass_filenames: false
- id: typecheck-py
name: typecheck python
entry: make
args: [typecheck-py]
language: system
types: [python]
pass_filenames: false