2019-12-31 12:03:23 -07:00
|
|
|
repos:
|
2022-12-24 17:53:05 -05:00
|
|
|
- repo: https://github.com/pycqa/isort
|
|
|
|
rev: 5.11.2
|
2019-12-31 18:29:43 -07:00
|
|
|
hooks:
|
2022-12-24 17:53:05 -05:00
|
|
|
- id: isort
|
|
|
|
args: ['--profile', 'black', '--filter-files', '--check']
|
|
|
|
- repo: https://github.com/charliermarsh/ruff-pre-commit
|
2023-04-13 23:05:05 -04:00
|
|
|
rev: v0.0.261
|
2022-12-24 17:53:05 -05:00
|
|
|
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
|