Spaces:
Running
Running
File size: 1,710 Bytes
304e233 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 |
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-added-large-files
- id: check-ast
- id: check-json
exclude: ^(frontend/.*\.json|cua2-front/tsconfig.*\.json)$
- id: check-merge-conflict
- id: detect-private-key
- repo: https://github.com/pycqa/isort
rev: 5.13.2
hooks:
- id: isort
args: ["--profile", "black"]
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: v0.9.0
hooks:
- id: ruff
args: [--fix]
- id: ruff-format
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.14.1
hooks:
- id: mypy
additional_dependencies: [types-PyYAML, types-requests]
args: [--ignore-missing-imports]
- repo: https://github.com/codespell-project/codespell
rev: v2.3.0
hooks:
- id: codespell
args: ["--skip=*.json,*.jsonl,*.txt,*.md,*.ipynb"]
- repo: local
hooks:
- id: eslint-cua2-front
name: ESLint Frontend
entry: bash -c 'cd cua2-front && npx eslint src/ --config eslint.config.js'
language: system
files: ^cua2-front/.*\.(ts|tsx|js|jsx)$
pass_filenames: false
- id: typescript-check
name: TypeScript Type Check
entry: bash -c 'cd cua2-front && npx tsc --noEmit --project tsconfig.json'
language: system
files: ^cua2-front/.*\.(ts|tsx)$
pass_filenames: false
|