Skip to content

Commit

Permalink
Bump deps and tools (#321)
Browse files Browse the repository at this point in the history
  • Loading branch information
gaborbernat authored Feb 5, 2023
1 parent 4f62991 commit 127a727
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 14 deletions.
10 changes: 5 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,15 @@ repos:
hooks:
- id: isort
- repo: https://github.com/psf/black
rev: 22.12.0
rev: 23.1.0
hooks:
- id: black
args: [--safe]
- repo: https://github.com/asottile/blacken-docs
rev: 1.13.0
hooks:
- id: blacken-docs
additional_dependencies: [black==22.12]
additional_dependencies: [black==23.1]
- repo: https://github.com/pre-commit/pygrep-hooks
rev: v1.10.0
hooks:
Expand All @@ -48,15 +48,15 @@ repos:
hooks:
- id: flake8
additional_dependencies:
- flake8-bugbear==23.1.14
- flake8-bugbear==23.1.20
- flake8-comprehensions==3.10.1
- flake8-pytest-style==1.6
- flake8-spellcheck==0.28
- flake8-unused-arguments==0.0.12
- flake8-unused-arguments==0.0.13
- flake8-noqa==1.3
- pep8-naming==0.13.3
- repo: https://github.com/pre-commit/mirrors-prettier
rev: "v3.0.0-alpha.4"
rev: "v2.7.1"
hooks:
- id: prettier
additional_dependencies:
Expand Down
6 changes: 3 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ authors = [{ name = "Bernát Gábor", email = "[email protected]" }]
maintainers = [{ name = "Bernát Gábor", email = "[email protected]" }]
requires-python = ">=3.7"
dependencies = ["Sphinx>=5.3"]
optional-dependencies.docs = ["furo>=2022.12.7", "sphinx>=6.1.3", "sphinx-autodoc-typehints>=1.21"]
optional-dependencies.docs = ["furo>=2022.12.7", "sphinx>=6.1.3", "sphinx-autodoc-typehints>=1.23.4"]
optional-dependencies.testing = [
"covdefaults>=2.2.2",
"coverage>=7.0.5",
"diff-cover>=7.3",
"coverage>=7.1",
"diff-cover>=7.4",
"nptyping>=2.4.1",
"pytest>=7.2.1",
"pytest-cov>=4",
Expand Down
3 changes: 1 addition & 2 deletions src/sphinx_autodoc_typehints/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ def _resolve_type_guarded_imports(autodoc_mock_imports: list[str], obj: Any) ->
except (TypeError, OSError):
... # no source code => no type guards
else:
for (_, part) in _TYPE_GUARD_IMPORT_RE.findall(module_code):
for _, part in _TYPE_GUARD_IMPORT_RE.findall(module_code):
guarded_code = textwrap.dedent(part)
try:
with mock(autodoc_mock_imports):
Expand Down Expand Up @@ -533,7 +533,6 @@ def format_default(app: Sphinx, default: Any, is_annotated: bool) -> str | None:
def process_docstring(
app: Sphinx, what: str, name: str, obj: Any, options: Options | None, lines: list[str] # noqa: U100
) -> None:

original_obj = obj
obj = obj.fget if isinstance(obj, property) else obj
if not callable(obj):
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>=2.21
pre-commit>=3.0.4
commands =
pre-commit run --all-files --show-diff-on-failure

Expand All @@ -47,7 +47,7 @@ setenv =
{tty:MYPY_FORCE_COLOR = 1}
deps =
mypy==0.991
types-docutils>=0.19.1.1
types-docutils>=0.19.1.2
commands =
mypy --python-version 3.10 src
mypy --python-version 3.10 tests
Expand All @@ -61,8 +61,8 @@ setenv =
skip_install = true
deps =
covdefaults>=2.2.2
coverage>=7.0.5
diff-cover>=7.3
coverage>=7.1
diff-cover>=7.4
extras =
parallel_show_output = true
commands =
Expand Down

0 comments on commit 127a727

Please sign in to comment.