Loading...
Loading...
Compare original and translation side by side
tsc --noEmitmypytsc --noEmitmypyundefinedundefined
**Python**:
```bash
**Python**:
```bash
**Go**:
```bash
**Go**:
```bashundefinedundefinedundefinedundefinedundefinedundefined#!/bin/bash
set -e
echo "Running type check..."
npx tsc --noEmit
echo "Running linter..."
npm run lint
echo "Running tests..."
npm test -- --run
echo "✅ All checks passed!"#!/bin/bash
set -e
echo "Running type check..."
mypy src/
echo "Running linter..."
pylint src/
echo "Running tests..."
pytest
echo "✅ All checks passed!"chmod +x pre-commit.sh#!/bin/bash
set -e
echo "运行类型检查..."
npx tsc --noEmit
echo "运行代码检查..."
npm run lint
echo "运行测试..."
npm test -- --run
echo "✅ 所有检查通过!"#!/bin/bash
set -e
echo "运行类型检查..."
mypy src/
echo "运行代码检查..."
pylint src/
echo "运行测试..."
pytest
echo "✅ 所有检查通过!"chmod +x pre-commit.shnpm install --save-dev husky
npx husky install
npx husky add .husky/pre-commit "npm run lint && npm test"npm install --save-dev husky
npx husky install
npx husky add .husky/pre-commit "npm run lint && npm test".pre-commit-config.yamlrepos:
- repo: local
hooks:
- id: type-check
name: Type Check
entry: mypy src/
language: system
pass_filenames: false
- id: lint
name: Lint
entry: pylint src/
language: system
pass_filenames: false
- id: test
name: Test
entry: pytest
language: system
pass_filenames: falsepre-commit install.pre-commit-config.yamlrepos:
- repo: local
hooks:
- id: type-check
name: Type Check
entry: mypy src/
language: system
pass_filenames: false
- id: lint
name: Lint
entry: pylint src/
language: system
pass_filenames: false
- id: test
name: Test
entry: pytest
language: system
pass_filenames: falsepre-commit installuniversal-verification-screenshotuniversal-verification-bug-fixtoolchains-universal-security-api-reviewuniversal-collaboration-git-workflowuniversal-verification-screenshotuniversal-verification-bug-fixtoolchains-universal-security-api-reviewuniversal-collaboration-git-workflow