diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml index 5c89e15..d8b6b60 100644 --- a/.github/workflows/lint.yaml +++ b/.github/workflows/lint.yaml @@ -15,15 +15,25 @@ jobs: - uses: actions/checkout@v4 with: persist-credentials: false - - uses: astral-sh/setup-uv@v5 + - uses: actions/setup-python@v5 with: python-version: '3.13' - - name: install project - run: | - uv sync --dev - uv pip install pip - - uses: pre-commit/action@v3.0.1 env: GH_TOKEN: ${{ secrets.CUSTOM_GITHUB_PAT }} + + mypy: + name: mypy + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + persist-credentials: false + - uses: astral-sh/setup-uv@v5 + with: + python-version: '3.13' + - name: install deps + run: uv sync --no-install-project --dev + - name: run mypy + run: mypy src/mypy_issues/ --config-file pyproject.toml diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 362d3f0..72847be 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -35,6 +35,7 @@ repos: hooks: - id: shellcheck args: [-x, -P, SCRIPTDIR] + - repo: https://github.com/macisamuele/language-formatters-pre-commit-hooks rev: v2.14.0 hooks: @@ -47,22 +48,18 @@ repos: rev: 0.33.0 hooks: - id: check-github-workflows + - id: check-jsonschema + args: [--check-metaschema] + files: ^renovate.json$ + - repo: https://github.com/rhysd/actionlint rev: v1.7.7 hooks: - id: actionlint additional_dependencies: - github.com/wasilibs/go-shellcheck/cmd/shellcheck@v0.10.0 + - repo: https://github.com/woodruffw/zizmor-pre-commit rev: v1.6.0 hooks: - id: zizmor - - - repo: local - hooks: - - id: mypy - name: mypy - entry: ./.venv/bin/mypy src/mypy_issues/ --config-file pyproject.toml - pass_filenames: false - language: system - types_or: [python, toml] diff --git a/pyproject.toml b/pyproject.toml index eb58355..100e458 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -21,7 +21,7 @@ dependencies = [ "ruff>=0.9.3", "tqdm>=4.67.1", ] -description = "Add your description here" +description = "Quickly compare outputs of different mypy versions on open issues" name = "mypy-issues" readme = "README.md" requires-python = ">=3.11" diff --git a/renovate.json b/renovate.json index 96cadb3..64bdc69 100644 --- a/renovate.json +++ b/renovate.json @@ -4,6 +4,9 @@ "config:recommended", "group:allNonMajor" ], + "lockFileMaintenance": { + "enabled": true + }, "pre-commit": { "enabled": true }