Spaces:
Running
Running
| 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 | |