chore: 更新版本号至 0.1.1,修复文档和测试中的相关引用 #10
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@v5 | |
| 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 | |
| mypy: | |
| name: Type Check (mypy) | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.12" | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v5 | |
| with: | |
| enable-cache: true | |
| - name: Install dependencies | |
| run: | | |
| uv venv | |
| uv pip install -e ".[all]" | |
| uv pip install mypy | |
| - name: Run mypy | |
| run: uv run mypy hyperextract --ignore-missing-imports |