Skip to content

Commit

Permalink
Bump mypy, ruff versions
Browse files Browse the repository at this point in the history
- mypy v1.12.0 → v1.14.1.
  - Drop custom hook entry that uses PRE_COMMIT_MYPY_VENV.
  - Use config suggested at python/mypy#13916.
- ruff v0.8.4 → v0.9.1
  • Loading branch information
khaeru committed Jan 21, 2025
1 parent 0a4b17e commit 2796c44
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 13 deletions.
13 changes: 3 additions & 10 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,16 +1,10 @@
repos:
- repo: local
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.14.1
hooks:
- id: mypy
name: mypy
always_run: true
require_serial: true
pass_filenames: false

language: python
entry: bash -c ". ${PRE_COMMIT_MYPY_VENV:-/dev/null}/bin/activate 2>/dev/null; mypy $0 $@"
additional_dependencies:
- mypy >= 1.12.0
- asyncssh
- git+https://github.com/iiasa/ixmp.git@main
- importlib_resources
Expand All @@ -20,9 +14,8 @@ repos:
- Sphinx
- types-PyYAML
- types-requests
args: ["."]
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.8.4
rev: v0.9.1
hooks:
- id: ruff
- id: ruff-format
Expand Down
6 changes: 3 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,9 @@ omit = [
]

[tool.mypy]
exclude = [
"build/",
"doc/",
files = [
"doc",
"message_ix",
]
# TODO Remove this once it has become default with mypy 2.0:
local_partial_types = true
Expand Down

0 comments on commit 2796c44

Please sign in to comment.