1
0
mirror of https://github.com/checktheroads/hyperglass synced 2024-05-11 05:55:08 +00:00
checktheroads-hyperglass/.pre-commit-config.yaml

42 lines
1.2 KiB
YAML
Raw Normal View History

repos:
- repo: https://github.com/pycqa/isort
rev: 5.11.2
hooks:
- id: isort
args: ['--profile', 'black', '--filter-files', '--check']
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: v0.0.261
hooks:
- id: ruff
# Respect `exclude` and `extend-exclude` settings.
2021-01-03 10:59:19 -07:00
- repo: local
hooks:
2021-01-03 23:04:08 -07:00
- id: typescript
2021-01-03 23:21:40 -07:00
name: TypeScript
2021-01-03 11:16:03 -07:00
files: 'hyperglass/ui/*'
2021-01-03 23:04:08 -07:00
exclude: 'hyperglass/ui/node_modules|hyperglass/ui/.next'
2021-01-03 10:59:19 -07:00
stages:
- commit
2021-01-03 23:21:40 -07:00
entry: ./.tests/pre-commit-frontend.sh --typescript
2021-01-03 23:04:08 -07:00
language: script
- repo: local
hooks:
- id: eslint
2021-01-03 23:21:40 -07:00
name: ESLint
2021-01-03 23:04:08 -07:00
files: 'hyperglass/ui/*'
exclude: 'hyperglass/ui/node_modules|hyperglass/ui/.next'
stages:
- commit
2021-01-03 23:21:40 -07:00
entry: ./.tests/pre-commit-frontend.sh --eslint
2021-01-03 23:04:08 -07:00
language: script
- repo: local
hooks:
- id: prettier
2021-01-03 23:21:40 -07:00
name: Prettier
2021-01-03 23:04:08 -07:00
files: 'hyperglass/ui/*'
exclude: 'hyperglass/ui/node_modules|hyperglass/ui/.next'
stages:
- commit
2021-01-03 23:21:40 -07:00
entry: ./.tests/pre-commit-frontend.sh --prettier
2021-01-03 10:59:19 -07:00
language: script