Skip to content

Commit a12524f

Browse files
committed
Update black
1 parent 76cbf24 commit a12524f

2 files changed

Lines changed: 4 additions & 7 deletions

File tree

tests/test_pytest_mypy.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88

99
import pytest_mypy
1010

11-
1211
MYPY_VERSION = Version(mypy.version.__version__)
1312
PYTEST_VERSION = Version(pytest.__version__)
1413
PYTHON_VERSION = Version(
@@ -699,12 +698,10 @@ def test_mypy_report_style(testdir, xdist_args):
699698
"""Verify that --mypy-report-style functions correctly."""
700699
module_name = "unmistakable_module_name"
701700
testdir.makepyfile(
702-
**{
703-
module_name: """
701+
**{module_name: """
704702
def pyfunc(x: int) -> str:
705703
return x * 2
706-
"""
707-
},
704+
"""},
708705
)
709706
result = testdir.runpytest_subprocess("--mypy-report-style", "no-path", *xdist_args)
710707
mypy_file_checks = 1

tox.ini

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,12 +66,12 @@ commands =
6666
basepython = py312 # pytest.Node.from_parent uses typing.Self
6767
deps =
6868
bandit ~= 1.9.0
69-
black ~= 24.2.0
69+
black ~= 26.5.0
7070
flake8 ~= 7.3.0
7171
mypy ~= 2.1.0
7272
pytest-xdist >= 3.6.0 # needed for type-checking
7373
commands =
74-
black --check src tests
74+
black --check --target-version py38 src tests
7575
flake8 src tests
7676
mypy --strict src
7777
bandit --recursive src

0 commit comments

Comments
 (0)