Skip to content

Commit ccbfce7

Browse files
authored
Release 3.2.0 (#160)
1 parent 6bc5efe commit ccbfce7

File tree

7 files changed

+25
-22
lines changed

7 files changed

+25
-22
lines changed

.github/workflows/test.yml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,8 @@ jobs:
2121
strategy:
2222
fail-fast: false
2323
matrix:
24-
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
25-
pytest-version: ["~=7.2", "~=8.1"]
26-
# TODO: remove after several new versions of mypy
27-
mypy-version: ["~=1.7", "~=1.10"]
24+
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
25+
pytest-version: ["~=7.2", "~=8.3"]
2826

2927
steps:
3028
- uses: actions/checkout@v4
@@ -38,8 +36,6 @@ jobs:
3836
pip install -e .
3937
# Force correct `pytest` version for different envs:
4038
pip install -U "pytest${{ matrix.pytest-version }}"
41-
# Force correct `mypy` version:
42-
pip install -U "mypy${{ matrix.mypy-version }}"
4339
- name: Run tests
4440
run: pytest
4541

@@ -59,5 +55,5 @@ jobs:
5955
- name: Run linters
6056
run: |
6157
mypy .
62-
black --check pytest_mypy_plugins setup.py
58+
black --check .
6359
isort --check --diff .

CHANGELOG.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,19 @@
11
# Version history
22

33

4+
## 3.2.0
5+
6+
### Features
7+
8+
- Drops `python3.8` support
9+
- Adds official `python3.13` support
10+
11+
### Bugfixes
12+
13+
- Fixes regex for colon output `:`, #155
14+
- Fixes internal error with `TraceLastReprEntry`, #154
15+
16+
417
## 3.1.2
518

619
### Bugfixes

pyproject.toml

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,15 @@
11
[tool.mypy]
2+
strict = true
23
ignore_missing_imports = true
3-
strict_optional = true
4-
no_implicit_optional = true
5-
disallow_any_generics = true
6-
disallow_untyped_defs = true
7-
strict_equality = true
84
warn_unreachable = true
9-
warn_no_return = true
10-
warn_unused_ignores = true
11-
warn_redundant_casts = true
12-
warn_unused_configs = true
135

146
[tool.pytest.ini_options]
157
python_files = "test_*.py"
168
addopts = "-s --mypy-extension-hook pytest_mypy_plugins.tests.reveal_type_hook.hook"
179

1810
[tool.black]
1911
line-length = 120
20-
target-version = ["py38"]
12+
target-version = ["py39"]
2113

2214
[tool.isort]
2315
include_trailing_comma = true

pytest_mypy_plugins/collect.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ def collect(self) -> Iterator["YamlTestItem"]:
168168
)
169169

170170
def _eval_skip(self, skip_if: str) -> bool:
171-
return eval(skip_if, {"sys": sys, "os": os, "pytest": pytest, "platform": platform})
171+
return bool(eval(skip_if, {"sys": sys, "os": os, "pytest": pytest, "platform": platform}))
172172

173173

174174
def pytest_collect_file(file_path: pathlib.Path, parent: Node) -> Optional[YamlTestFile]:

pytest_mypy_plugins/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ def matches(self, actual: str) -> bool:
7878
)
7979
+ self.message
8080
)
81-
return regex.match(pattern, actual)
81+
return bool(regex.match(pattern, actual))
8282
else:
8383
return str(self) == actual
8484

requirements.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,6 @@ isort
33
types-decorator
44
types-PyYAML
55
types-setuptools
6+
types-regex
7+
mypy==1.13
68
-e .

setup.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
setup(
1919
name="pytest-mypy-plugins",
20-
version="3.1.2",
20+
version="3.2.0",
2121
description="pytest plugin for writing tests for mypy plugins",
2222
long_description=readme,
2323
long_description_content_type="text/markdown",
@@ -31,19 +31,19 @@
3131
# the following makes a plugin available to pytest
3232
entry_points={"pytest11": ["pytest-mypy-plugins = pytest_mypy_plugins.collect"]},
3333
install_requires=dependencies,
34-
python_requires=">=3.8",
34+
python_requires=">=3.9",
3535
package_data={
3636
"pytest_mypy_plugins": ["py.typed", "schema.json"],
3737
},
3838
classifiers=[
3939
"Development Status :: 4 - Beta",
4040
"License :: OSI Approved :: MIT License",
4141
"Programming Language :: Python :: 3",
42-
"Programming Language :: Python :: 3.8",
4342
"Programming Language :: Python :: 3.9",
4443
"Programming Language :: Python :: 3.10",
4544
"Programming Language :: Python :: 3.11",
4645
"Programming Language :: Python :: 3.12",
46+
"Programming Language :: Python :: 3.13",
4747
"Typing :: Typed",
4848
],
4949
)

0 commit comments

Comments
 (0)