Skip to content

Commit

Permalink
chore: bump mypy version
Browse files Browse the repository at this point in the history
  • Loading branch information
henryiii committed Feb 25, 2022
1 parent 86495e8 commit 57abddb
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
3 changes: 3 additions & 0 deletions pyproject.toml
Expand Up @@ -39,6 +39,9 @@ filterwarnings = [
]

[tool.mypy]
files = "src"
python_version = "3.7"
warn_unused_configs = true
strict = true

[[tool.mypy.overrides]]
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Expand Up @@ -63,7 +63,7 @@ test =
setuptools>=56.0.0;python_version >= "3.10"
typing =
importlib-metadata>=4.6.4
mypy==0.910
mypy==0.931
typing-extensions>=3.7.4.3
virtualenv =
virtualenv>=20.0.35
Expand Down
6 changes: 2 additions & 4 deletions src/build/__main__.py
Expand Up @@ -13,7 +13,7 @@
import traceback
import warnings

from typing import Dict, Iterable, Iterator, List, NoReturn, Optional, Sequence, TextIO, Type, Union
from typing import Dict, Iterator, List, NoReturn, Optional, Sequence, TextIO, Type, Union

import build

Expand Down Expand Up @@ -251,9 +251,7 @@ def main_parser() -> argparse.ArgumentParser:
"""
Construct the main parser.
"""
# mypy does not recognize module.__path__
# https://github.com/python/mypy/issues/1422
paths: Iterable[str] = build.__path__ # type: ignore
paths = build.__path__
parser = argparse.ArgumentParser(
description=textwrap.indent(
textwrap.dedent(
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Expand Up @@ -52,7 +52,7 @@ commands =
description = run type check on code base
extras = typing
commands =
mypy --show-error-codes --python-version 3.6 src/build
mypy --show-error-codes src/build

[testenv:{py311, py310, py39, py38, py37, py36, pypy3}-min]
description = check minimum versions required of all dependencies
Expand Down

0 comments on commit 57abddb

Please sign in to comment.