reactpy/.pre-commit-config.yaml
Ryan Morshead 773570b1ec
V1.0.2 changelog (#1088)
* fix changelog

* narrow pre-commit steps to particular files
2023-07-03 23:48:37 -06:00

34 lines
821 B
YAML

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)$