reactpy/.pre-commit-config.yaml

35 lines
821 B
YAML
Raw Normal View History

repos:
- repo: local
hooks:
- id: lint-py-fix
name: Fix Python Lint
entry: hatch run lint-py
language: system
args: [--fix]
pass_filenames: false
files: \.py$
- repo: local
hooks:
- id: lint-js-fix
name: Fix JS Lint
entry: hatch run lint-js --fix
language: system
pass_filenames: false
files: \.(js|jsx|ts|tsx)$
- repo: local
hooks:
- id: lint-py-check
name: Check Python Lint
entry: hatch run lint-py
language: system
pass_filenames: false
files: \.py$
- repo: local
hooks:
- id: lint-js-check
name: Check JS Lint
entry: hatch run lint-py
language: system
pass_filenames: false
files: \.(js|jsx|ts|tsx)$