Skip to content

Commit bbb2f83

Browse files
Fix mypy (#358)
* Remove type ignore that make mypy fails * Fix the increment version * Revert "Fix the increment version" This reverts commit c24d5ca. * Revert "Remove type ignore that make mypy fails" This reverts commit 2af5bc8. * Ignore bump script with mypy * Remove unnecessary type ignore * Exclude file in pre-commit config --------- Co-authored-by: David Brochart <[email protected]>
1 parent 56fa7b7 commit bbb2f83

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ repos:
6060
rev: v0.991
6161
hooks:
6262
- id: mypy
63-
exclude: "(^binder/jupyter_config\\.py$)|(/setup\\.py$)"
63+
exclude: "(^binder/jupyter_config\\.py$)|(^scripts/bump_version\\.py$)|(/setup\\.py$)"
6464
args: ["--config-file", "pyproject.toml"]
6565
additional_dependencies: [tornado, pytest]
6666
stages: [manual]

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ filterwarnings = [
111111
[tool.mypy]
112112
exclude=[
113113
"^binder/jupyter_config\\.py$",
114+
"^scripts/bump_version\\.py$",
114115
"/setup\\.py$",
115116
]
116117
check_untyped_defs = true

scripts/bump_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
import click
88
import tomlkit
99
from jupyter_releaser.util import get_version, run
10-
from pkg_resources import parse_version # type: ignore
10+
from pkg_resources import parse_version
1111

1212
LERNA_CMD = "jlpm run lerna version --no-push --force-publish --no-git-tag-version"
1313

0 commit comments

Comments
 (0)