chore: 更新中英文文档,修复链接和格式问题 #16
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Lint | |
| on: | |
| push: | |
| branches: [main, develop] | |
| paths: | |
| - "hyperextract/**/*.py" | |
| - "pyproject.toml" | |
| - ".github/workflows/lint.yml" | |
| pull_request: | |
| branches: [main, develop] | |
| paths: | |
| - "hyperextract/**/*.py" | |
| - "pyproject.toml" | |
| - ".github/workflows/lint.yml" | |
| permissions: | |
| contents: read | |
| jobs: | |
| ruff: | |
| name: Ruff | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v7 | |
| with: | |
| enable-cache: true | |
| - name: Install ruff | |
| run: uv tool install ruff | |
| - name: Run ruff linter | |
| run: ruff check hyperextract | |
| - name: Run ruff formatter check | |
| run: ruff format --check hyperextract |