diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml deleted file mode 100644 index fb6ca08..0000000 --- a/.github/workflows/lint.yml +++ /dev/null @@ -1,38 +0,0 @@ -name: Lint - -on: - push: - branches: - - main - pull_request: - types: - - opened - - synchronize - -jobs: - lint: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v5 - - name: Set up Python - uses: actions/setup-python@v6 - with: - python-version-file: "pyproject.toml" - - name: Install uv - uses: astral-sh/setup-uv@v7 - - name: Install Dependencies - run: uv sync --locked --all-extras --dev - - name: Lint - run: uv run --no-sync scripts/lint.sh - - # https://github.com/marketplace/actions/alls-green#why - lint-alls-green: # This job does nothing and is only used for the branch protection - if: always() - needs: - - lint - runs-on: ubuntu-latest - steps: - - name: Decide whether the needed jobs succeeded or failed - uses: re-actors/alls-green@release/v1 - with: - jobs: ${{ toJSON(needs) }} diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 5c671f6..8525fd4 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -26,3 +26,10 @@ repos: require_serial: true language: unsupported types: [python] + + - id: local-mypy + name: mypy check + entry: uv run mypy src tests + require_serial: true + language: unsupported + pass_filenames: false