Skip to content

Commit 709ad35

Browse files
committed
Version 1.9.2 release
1 parent 2526928 commit 709ad35

File tree

7 files changed

+22
-26
lines changed

7 files changed

+22
-26
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313

1414
strategy:
1515
matrix:
16-
python-version: [3.6, 3.7, 3.8, 3.9, "3.10"]
16+
python-version: ["3.6", "3.7", "3.8", "3.9", "3.10"]
1717

1818
steps:
1919
- uses: actions/checkout@v2

CHANGELOG.md

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

33

4+
## Version 1.9.2
5+
6+
### Bugfixes
7+
8+
- Removes usages of `distutils` #71
9+
- Fixes multiline messages #66
10+
- Fixes that empty output test cases was almost ignored #63
11+
- Fixes output formatting for expected messages #66
12+
13+
414
## Version 1.9.1
515

616
## Bugfixes

mypy.ini

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,12 @@
22
ignore_missing_imports = True
33
# strict checks
44
strict_optional = True
5+
no_implicit_optional = True
56
disallow_any_generics = True
67
disallow_untyped_defs = True
8+
strict_equality = True
9+
warn_unreachable = True
10+
warn_no_return = True
711
warn_unused_ignores = True
8-
strict_equality = True
12+
warn_redundant_casts = True
13+
warn_unused_configs = True

pytest_mypy_plugins/collect.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import platform
33
import sys
44
import tempfile
5-
from typing import TYPE_CHECKING, Any, Dict, Iterator, List, Mapping, Optional
5+
from typing import TYPE_CHECKING, Any, Dict, Iterator, List, Mapping, Optional, Set
66

77
import pytest
88
import yaml
@@ -44,7 +44,7 @@ def parse_parametrized(params: List[Mapping[str, Any]]) -> List[Mapping[str, Any
4444
return [{}]
4545

4646
parsed_params: List[Mapping[str, Any]] = []
47-
known_params = None
47+
known_params: Optional[Set[str]] = None
4848
for idx, param in enumerate(params):
4949
param_keys = set(sorted(param.keys()))
5050
if not known_params:

pytest_mypy_plugins/item.py

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,7 @@
55
import tempfile
66
from configparser import ConfigParser
77
from pathlib import Path
8-
from typing import (
9-
TYPE_CHECKING,
10-
Any,
11-
Callable,
12-
Dict,
13-
List,
14-
Optional,
15-
Tuple,
16-
Union,
17-
)
8+
from typing import TYPE_CHECKING, Any, Callable, Dict, List, Optional, Tuple, Union
189

1910
import py
2011
import pytest

pytest_mypy_plugins/utils.py

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,7 @@
99
from dataclasses import dataclass
1010
from itertools import zip_longest
1111
from pathlib import Path
12-
from typing import (
13-
Any,
14-
Callable,
15-
Dict,
16-
Iterator,
17-
List,
18-
Mapping,
19-
Optional,
20-
Tuple,
21-
Union,
22-
)
12+
from typing import Any, Callable, Dict, Iterator, List, Mapping, Optional, Tuple, Union
2313

2414
import chevron
2515
import regex

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
setup(
1717
name="pytest-mypy-plugins",
18-
version="1.9.1",
18+
version="1.9.2",
1919
description="pytest plugin for writing tests for mypy plugins",
2020
long_description=readme,
2121
long_description_content_type="text/markdown",

0 commit comments

Comments
 (0)