[pre-commit.ci] pre-commit autoupdate (#280)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
pre-commit-ci[bot] 2023-08-14 16:50:22 -07:00 committed by GitHub
parent 6c9136bacb
commit 8edf3c1963
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 7 additions and 7 deletions

View File

@ -14,17 +14,17 @@ repos:
- id: tox-ini-fmt
args: ["-p", "fix"]
- repo: https://github.com/tox-dev/pyproject-fmt
rev: "0.13.0"
rev: "0.13.1"
hooks:
- id: pyproject-fmt
additional_dependencies: ["tox>=4.6.4"]
additional_dependencies: ["tox>=4.8"]
- repo: https://github.com/pre-commit/mirrors-prettier
rev: "v3.0.1"
hooks:
- id: prettier
args: ["--print-width=120", "--prose-wrap=always"]
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: "v0.0.282"
rev: "v0.0.284"
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]

View File

@ -45,11 +45,11 @@ optional-dependencies.graphviz = [
optional-dependencies.test = [
"covdefaults>=2.3",
"diff-cover>=7.7",
"pip>=23.2",
"pip>=23.2.1",
"pytest>=7.4",
"pytest-cov>=4.1",
"pytest-mock>=3.11.1",
"virtualenv<21,>=20.24",
"virtualenv<21,>=20.24.3",
]
urls.Changelog = "https://github.com/tox-dev/pipdeptree/blob/main/CHANGES.md"
urls.Documentation = "https://github.com/tox-dev/pipdeptree/blob/main/README.md#pipdeptree"

View File

@ -66,7 +66,7 @@ def test_parser_svg() -> None:
(False, [], float("inf")),
],
)
def test_parser_depth(should_be_error: bool, depth_arg: list[str], expected_value: None | int | float) -> None:
def test_parser_depth(should_be_error: bool, depth_arg: list[str], expected_value: None | float) -> None:
parser = build_parser()
if should_be_error:

View File

@ -43,7 +43,7 @@ commands =
[testenv:type]
description = run type check on code base
deps =
mypy==1.4.1
mypy==1.5
set_env =
{tty:MYPY_FORCE_COLOR = 1}
commands =