Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,7 @@ mypy = "pytest_mypy"
[project.urls]
homepage = "https://github.com/realpython/pytest-mypy"

[tool.isort]
profile = "black"

[tool.setuptools_scm]
6 changes: 3 additions & 3 deletions src/pytest_mypy/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@

from __future__ import annotations

import json
import typing
from collections.abc import Iterator
from dataclasses import dataclass
import json
from pathlib import Path
from tempfile import NamedTemporaryFile
import typing

from filelock import FileLock
import mypy.api
import pytest
from filelock import FileLock

if typing.TYPE_CHECKING: # pragma: no cover

Expand Down
2 changes: 1 addition & 1 deletion tests/test_pytest_mypy.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
import textwrap

import mypy.version
from packaging.version import Version
import pytest
from packaging.version import Version

import pytest_mypy

Expand Down
8 changes: 5 additions & 3 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,14 @@ commands =
[testenv:static]
deps =
bandit ~= 1.9.0
black ~= 26.5.0
flake8 ~= 7.3.0
mypy ~= 2.1.0
black ~= 26.10.0
flake8 ~= 7.4.0
isort ~= 9.0.0
mypy ~= 2.4.0
pytest-xdist >= 3.6.0 # needed for type-checking
commands =
black --check --target-version py310 src tests
isort --check src tests
flake8 src tests
mypy --strict src
bandit --recursive src
Expand Down
Loading