Skip to content

Commit 7cfb915

Browse files
committed
Bump tools and deps
Signed-off-by: Bernát Gábor <bgabor8@bloomberg.net>
1 parent eda25f6 commit 7cfb915

File tree

5 files changed

+43
-43
lines changed

5 files changed

+43
-43
lines changed

.pre-commit-config.yaml

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
repos:
22
- repo: https://github.com/pre-commit/pre-commit-hooks
3-
rev: v4.3.0
3+
rev: v4.4.0
44
hooks:
55
- id: check-ast
66
- id: check-builtin-literals
@@ -12,7 +12,7 @@ repos:
1212
- id: end-of-file-fixer
1313
- id: trailing-whitespace
1414
- repo: https://github.com/asottile/pyupgrade
15-
rev: v3.2.2
15+
rev: v3.3.1
1616
hooks:
1717
- id: pyupgrade
1818
args: ["--py37-plus"]
@@ -21,50 +21,50 @@ repos:
2121
files: "^(tests/roots/test-dummy/dummy_module.py)$"
2222
args: ["--py36-plus"]
2323
- repo: https://github.com/PyCQA/isort
24-
rev: 5.10.1
24+
rev: 5.11.4
2525
hooks:
2626
- id: isort
2727
- repo: https://github.com/psf/black
28-
rev: 22.10.0
28+
rev: 22.12.0
2929
hooks:
3030
- id: black
3131
args: [--safe]
3232
- repo: https://github.com/asottile/blacken-docs
33-
rev: v1.12.1
33+
rev: 1.13.0
3434
hooks:
3535
- id: blacken-docs
36-
additional_dependencies: [black==22.10]
36+
additional_dependencies: [black==22.12]
3737
- repo: https://github.com/pre-commit/pygrep-hooks
38-
rev: v1.9.0
38+
rev: v1.10.0
3939
hooks:
4040
- id: rst-backticks
4141
- repo: https://github.com/tox-dev/tox-ini-fmt
42-
rev: "0.5.2"
42+
rev: "0.6.1"
4343
hooks:
4444
- id: tox-ini-fmt
4545
args: ["-p", "fix"]
4646
- repo: https://github.com/PyCQA/flake8
47-
rev: 5.0.4
47+
rev: 6.0.0
4848
hooks:
4949
- id: flake8
5050
additional_dependencies:
51-
- flake8-bugbear==22.10.27
51+
- flake8-bugbear==23.1.14
5252
- flake8-comprehensions==3.10.1
5353
- flake8-pytest-style==1.6
5454
- flake8-spellcheck==0.28
5555
- flake8-unused-arguments==0.0.12
56-
- flake8-noqa==1.2.9
57-
- pep8-naming==0.13.2
56+
- flake8-noqa==1.3
57+
- pep8-naming==0.13.3
5858
- repo: https://github.com/pre-commit/mirrors-prettier
59-
rev: "v3.0.0-alpha.4"
59+
rev: "v2.7.1"
6060
hooks:
6161
- id: prettier
6262
additional_dependencies:
6363
- prettier@2.7.1
6464
- "@prettier/plugin-xml@2.2"
6565
args: ["--print-width=120", "--prose-wrap=always"]
6666
- repo: https://github.com/igorshubovych/markdownlint-cli
67-
rev: v0.32.2
67+
rev: v0.33.0
6868
hooks:
6969
- id: markdownlint
7070
- repo: meta

pyproject.toml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[build-system]
22
build-backend = "hatchling.build"
3-
requires = ["hatchling>=1.11.1", "hatch-vcs>=0.2"]
3+
requires = ["hatchling>=1.12.2", "hatch-vcs>=0.3"]
44

55
[project]
66
name = "sphinx_autodoc_typehints"
@@ -17,15 +17,15 @@ authors = [{ name = "Bernát Gábor", email = "gaborjbernat@gmail.com" }]
1717
maintainers = [{ name = "Bernát Gábor", email = "gaborjbernat@gmail.com" }]
1818
requires-python = ">=3.7"
1919
dependencies = ["Sphinx>=5.3"]
20-
optional-dependencies.docs = ["furo>=2022.9.29", "sphinx>=5.3", "sphinx-autodoc-typehints>=1.19.4"]
20+
optional-dependencies.docs = ["furo>=2022.12.7", "sphinx>=6.1.3", "sphinx-autodoc-typehints>=1.21"]
2121
optional-dependencies.testing = [
22-
"covdefaults>=2.2",
23-
"coverage>=6.5",
24-
"diff-cover>=7.0.1",
25-
"nptyping>=2.3.1",
26-
"pytest>=7.2",
22+
"covdefaults>=2.2.2",
23+
"coverage>=7.0.5",
24+
"diff-cover>=7.3",
25+
"nptyping>=2.4.1",
26+
"pytest>=7.2.1",
2727
"pytest-cov>=4",
28-
"sphobjinv>=2.2.2",
28+
"sphobjinv>=2.3.1",
2929
"typing-extensions>=4.4",
3030
]
3131
optional-dependencies.type-comment = ['typed-ast>=1.5.4; python_version < "3.8"']

tests/roots/test-dummy/dummy_module.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import typing
21
from dataclasses import dataclass
32
from mailbox import Mailbox
4-
from typing import Callable, Optional, Union
3+
from typing import Union # noqa: F401 # needed for expansion of Optional
4+
from typing import Callable, Optional
55

66

77
def get_local_function():
@@ -22,10 +22,10 @@ class Class:
2222
:param z: baz
2323
"""
2424

25-
def __init__(self, x: bool, y: int, z: typing.Optional[str] = None) -> None: # noqa: U100
25+
def __init__(self, x: bool, y: int, z: Optional[str] = None) -> None: # noqa: U100
2626
pass
2727

28-
def a_method(self, x: bool, y: int, z: typing.Optional[str] = None) -> str: # noqa: U100
28+
def a_method(self, x: bool, y: int, z: Optional[str] = None) -> str: # noqa: U100
2929
"""
3030
Method docstring.
3131
@@ -56,7 +56,7 @@ def __magic_custom_method__(self, x: str) -> str: # noqa: U100
5656
"""
5757

5858
@classmethod
59-
def a_classmethod(cls, x: bool, y: int, z: typing.Optional[str] = None) -> str: # noqa: U100
59+
def a_classmethod(cls, x: bool, y: int, z: Optional[str] = None) -> str: # noqa: U100
6060
"""
6161
Classmethod docstring.
6262
@@ -66,7 +66,7 @@ def a_classmethod(cls, x: bool, y: int, z: typing.Optional[str] = None) -> str:
6666
"""
6767

6868
@staticmethod
69-
def a_staticmethod(x: bool, y: int, z: typing.Optional[str] = None) -> str: # noqa: U100
69+
def a_staticmethod(x: bool, y: int, z: Optional[str] = None) -> str: # noqa: U100
7070
"""
7171
Staticmethod docstring.
7272
@@ -114,7 +114,7 @@ def __init__(self, message: str) -> None:
114114
super().__init__(message)
115115

116116

117-
def function(x: bool, y: int, z_: typing.Optional[str] = None) -> str: # noqa: U100
117+
def function(x: bool, y: int, z_: Optional[str] = None) -> str: # noqa: U100
118118
"""
119119
Function docstring.
120120

tests/test_sphinx_autodoc_typehints.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,9 @@
6464

6565
# Mypy does not support recursive type aliases, but
6666
# other type checkers do.
67-
RecList = Union[int, List["RecList"]] # type: ignore
68-
MutualRecA = Union[bool, List["MutualRecB"]] # type: ignore
69-
MutualRecB = Union[str, List["MutualRecA"]] # type: ignore
67+
RecList = Union[int, List["RecList"]]
68+
MutualRecA = Union[bool, List["MutualRecB"]]
69+
MutualRecB = Union[str, List["MutualRecA"]]
7070

7171

7272
class A:
@@ -103,10 +103,10 @@ class Metaclass(type):
103103

104104
class HintedMethods:
105105
@classmethod
106-
def from_magic(cls: type[T]) -> T:
106+
def from_magic(cls: type[T]) -> T: # type: ignore
107107
...
108108

109-
def method(self: T) -> T:
109+
def method(self: T) -> T: # type: ignore
110110
...
111111

112112

@@ -151,7 +151,7 @@ def __getitem__(self, params):
151151
pytest.param(Callable[..., str], "typing", "Callable", (..., str), id="Callable_returntype"),
152152
pytest.param(Callable[[int, str], str], "typing", "Callable", (int, str, str), id="Callable_all_types"),
153153
pytest.param(
154-
AbcCallable[[int, str], str], # type: ignore[misc]
154+
AbcCallable[[int, str], str], # type: ignore
155155
"collections.abc",
156156
"Callable",
157157
(int, str, str),
@@ -258,7 +258,7 @@ def test_parse_annotation(annotation: Any, module: str, class_name: str, args: t
258258
" :py:class:`~typing.TypeVar`\\(``T``)]",
259259
),
260260
(
261-
AbcCallable[[int, str], bool], # type: ignore[misc]
261+
AbcCallable[[int, str], bool], # type: ignore
262262
":py:class:`~collections.abc.Callable`\\[\\[:py:class:`int`, " ":py:class:`str`], :py:class:`bool`]",
263263
),
264264
(Pattern, ":py:class:`~typing.Pattern`"),

tox.ini

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ wheel_build_env = .pkg
3737
description = format the code base to adhere to our styles, and complain about what we cannot do automatically
3838
skip_install = true
3939
deps =
40-
pre-commit>=2.20
40+
pre-commit>=2.21
4141
commands =
4242
pre-commit run --all-files --show-diff-on-failure
4343

@@ -46,7 +46,7 @@ description = run type check on code base
4646
setenv =
4747
{tty:MYPY_FORCE_COLOR = 1}
4848
deps =
49-
mypy==0.982
49+
mypy==0.991
5050
types-docutils>=0.19.1.1
5151
commands =
5252
mypy --python-version 3.10 src
@@ -60,9 +60,9 @@ setenv =
6060
COVERAGE_FILE = {toxworkdir}/.coverage
6161
skip_install = true
6262
deps =
63-
covdefaults>=2.2
64-
coverage>=6.5
65-
diff-cover>=7.0.1
63+
covdefaults>=2.2.2
64+
coverage>=7.0.5
65+
diff-cover>=7.3
6666
extras =
6767
parallel_show_output = true
6868
commands =
@@ -82,8 +82,8 @@ depends =
8282
description = check that the long description is valid (need for PyPI)
8383
skip_install = true
8484
deps =
85-
build[virtualenv]>=0.9
86-
twine>=4.0.1
85+
build[virtualenv]>=0.10
86+
twine>=4.0.2
8787
extras =
8888
commands =
8989
pyproject-build -o {envtmpdir} --wheel --sdist .

0 commit comments

Comments
 (0)