Merge pull request #8 from qingchenyouforcc/master #18
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: | |
| paths: | |
| - "src/**" | |
| - "main.py" | |
| - ".github/workflows/lint.yml" | |
| - "pyproject.toml" | |
| - "uv.lock" | |
| pull_request: | |
| paths: | |
| - "src/**" | |
| - "main.py" | |
| - ".github/workflows/lint.yml" | |
| - "pyproject.toml" | |
| - "uv.lock" | |
| jobs: | |
| ruff: | |
| name: Ruff Lint | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Run Ruff Lint | |
| uses: astral-sh/ruff-action@v2 | |
| with: | |
| src: >- | |
| src/ | |
| main.py | |
| # basedpyright: | |
| # name: BasedPyright Lint (${{ matrix.python-version }}) | |
| # runs-on: ubuntu-latest | |
| # needs: ruff | |
| # concurrency: | |
| # group: basedpyright-${{ github.ref }}-${{ matrix.python-version }} | |
| # cancel-in-progress: true | |
| # strategy: | |
| # fail-fast: false | |
| # matrix: | |
| # python-version: ["3.13"] | |
| # | |
| # steps: | |
| # - uses: actions/checkout@v4 | |
| # | |
| # - name: Setup Python | |
| # uses: ./.github/actions/setup-python | |
| # with: | |
| # python-version: ${{ matrix.python-version }} | |
| # | |
| # - name: Run BasedPyright | |
| # run: uvx basedpyright . |