Skip to content

Commit 127a727

Browse files
authored
Bump deps and tools (#321)
1 parent 4f62991 commit 127a727

File tree

4 files changed

+13
-14
lines changed

4 files changed

+13
-14
lines changed

.pre-commit-config.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,15 @@ repos:
2525
hooks:
2626
- id: isort
2727
- repo: https://github.com/psf/black
28-
rev: 22.12.0
28+
rev: 23.1.0
2929
hooks:
3030
- id: black
3131
args: [--safe]
3232
- repo: https://github.com/asottile/blacken-docs
3333
rev: 1.13.0
3434
hooks:
3535
- id: blacken-docs
36-
additional_dependencies: [black==22.12]
36+
additional_dependencies: [black==23.1]
3737
- repo: https://github.com/pre-commit/pygrep-hooks
3838
rev: v1.10.0
3939
hooks:
@@ -48,15 +48,15 @@ repos:
4848
hooks:
4949
- id: flake8
5050
additional_dependencies:
51-
- flake8-bugbear==23.1.14
51+
- flake8-bugbear==23.1.20
5252
- flake8-comprehensions==3.10.1
5353
- flake8-pytest-style==1.6
5454
- flake8-spellcheck==0.28
55-
- flake8-unused-arguments==0.0.12
55+
- flake8-unused-arguments==0.0.13
5656
- flake8-noqa==1.3
5757
- 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:

pyproject.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@ authors = [{ name = "Bernát Gábor", email = "[email protected]" }]
1717
maintainers = [{ name = "Bernát Gábor", email = "[email protected]" }]
1818
requires-python = ">=3.7"
1919
dependencies = ["Sphinx>=5.3"]
20-
optional-dependencies.docs = ["furo>=2022.12.7", "sphinx>=6.1.3", "sphinx-autodoc-typehints>=1.21"]
20+
optional-dependencies.docs = ["furo>=2022.12.7", "sphinx>=6.1.3", "sphinx-autodoc-typehints>=1.23.4"]
2121
optional-dependencies.testing = [
2222
"covdefaults>=2.2.2",
23-
"coverage>=7.0.5",
24-
"diff-cover>=7.3",
23+
"coverage>=7.1",
24+
"diff-cover>=7.4",
2525
"nptyping>=2.4.1",
2626
"pytest>=7.2.1",
2727
"pytest-cov>=4",

src/sphinx_autodoc_typehints/__init__.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,7 @@ def _resolve_type_guarded_imports(autodoc_mock_imports: list[str], obj: Any) ->
372372
except (TypeError, OSError):
373373
... # no source code => no type guards
374374
else:
375-
for (_, part) in _TYPE_GUARD_IMPORT_RE.findall(module_code):
375+
for _, part in _TYPE_GUARD_IMPORT_RE.findall(module_code):
376376
guarded_code = textwrap.dedent(part)
377377
try:
378378
with mock(autodoc_mock_imports):
@@ -533,7 +533,6 @@ def format_default(app: Sphinx, default: Any, is_annotated: bool) -> str | None:
533533
def process_docstring(
534534
app: Sphinx, what: str, name: str, obj: Any, options: Options | None, lines: list[str] # noqa: U100
535535
) -> None:
536-
537536
original_obj = obj
538537
obj = obj.fget if isinstance(obj, property) else obj
539538
if not callable(obj):

tox.ini

Lines changed: 4 additions & 4 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.21
40+
pre-commit>=3.0.4
4141
commands =
4242
pre-commit run --all-files --show-diff-on-failure
4343

@@ -47,7 +47,7 @@ setenv =
4747
{tty:MYPY_FORCE_COLOR = 1}
4848
deps =
4949
mypy==0.991
50-
types-docutils>=0.19.1.1
50+
types-docutils>=0.19.1.2
5151
commands =
5252
mypy --python-version 3.10 src
5353
mypy --python-version 3.10 tests
@@ -61,8 +61,8 @@ setenv =
6161
skip_install = true
6262
deps =
6363
covdefaults>=2.2.2
64-
coverage>=7.0.5
65-
diff-cover>=7.3
64+
coverage>=7.1
65+
diff-cover>=7.4
6666
extras =
6767
parallel_show_output = true
6868
commands =

0 commit comments

Comments
 (0)