Skip to content

Commit

Permalink
Bump deps and tools (#336)
Browse files Browse the repository at this point in the history
  • Loading branch information
gaborbernat authored Mar 21, 2023
1 parent daf59ec commit 4f275f5
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,12 @@ repos:
hooks:
- id: flake8
additional_dependencies:
- flake8-bugbear==23.2.13
- flake8-comprehensions==3.10.1
- flake8-bugbear==23.3.12
- flake8-comprehensions==3.11.1
- flake8-pytest-style==1.7.2
- flake8-spellcheck==0.28
- flake8-unused-arguments==0.0.13
- flake8-noqa==1.3
- flake8-noqa==1.3.1
- pep8-naming==0.13.3
- repo: https://github.com/pre-commit/mirrors-prettier
rev: "v2.7.1"
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,10 @@ optional-dependencies.docs = [
]
optional-dependencies.testing = [
"covdefaults>=2.2.2",
"coverage>=7.2",
"coverage>=7.2.2",
"diff-cover>=7.5",
"nptyping>=2.5",
"pytest>=7.2.1",
"pytest>=7.2.2",
"pytest-cov>=4",
"sphobjinv>=2.3.1",
"typing-extensions>=4.5",
Expand Down
4 changes: 2 additions & 2 deletions src/sphinx_autodoc_typehints/attributes_patch.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def add_directive_header(*args: Any, **kwargs: Any) -> Any:
with patch(STRINGIFY_PATCH_TARGET, partial(stringify_annotation, app)):
return orig_add_directive_header(*args, **kwargs)

AttributeDocumenter.add_directive_header = add_directive_header # type:ignore[assignment]
AttributeDocumenter.add_directive_header = add_directive_header # type:ignore[method-assign]


def rst_to_docutils(settings: Values, rst: str) -> Any:
Expand Down Expand Up @@ -85,7 +85,7 @@ def patch_attribute_handling(app: Sphinx) -> None:
"""Use format_signature to format class attribute type annotations"""
if not OKAY_TO_PATCH:
return
PyAttribute.handle_signature = patched_handle_signature # type:ignore[assignment]
PyAttribute.handle_signature = patched_handle_signature # type:ignore[method-assign]
patch_attribute_documenter(app)


Expand Down
8 changes: 4 additions & 4 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ wheel_build_env = .pkg
description = format the code base to adhere to our styles, and complain about what we cannot do automatically
skip_install = true
deps =
pre-commit>=3.1
pre-commit>=3.2
commands =
pre-commit run --all-files --show-diff-on-failure

Expand All @@ -46,7 +46,7 @@ description = run type check on code base
setenv =
{tty:MYPY_FORCE_COLOR = 1}
deps =
mypy==1.0.1
mypy==1.1.1
types-docutils>=0.19.1.6
commands =
mypy --python-version 3.10 src
Expand All @@ -60,8 +60,8 @@ setenv =
COVERAGE_FILE = {toxworkdir}/.coverage
skip_install = true
deps =
covdefaults>=2.2.2
coverage>=7.2
covdefaults>=2.3
coverage>=7.2.2
diff-cover>=7.5
extras =
parallel_show_output = true
Expand Down

0 comments on commit 4f275f5

Please sign in to comment.