Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 16 additions & 6 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
15 changes: 6 additions & 9 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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]
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
3 changes: 3 additions & 0 deletions renovate.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
"config:recommended",
"group:allNonMajor"
],
"lockFileMaintenance": {
"enabled": true
},
"pre-commit": {
"enabled": true
}
Expand Down