-
-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
24 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,13 @@ | ||
- case: mypy_path_from_env | ||
main: | | ||
from pair import Pair | ||
a: Pair | ||
reveal_type(a) # N: Revealed type is "pair.Pair" | ||
env: | ||
- MYPYPATH=./pytest_mypy_plugins/tests/fixtures | ||
|
||
|
||
- case: mypy_path_from_env_with_error | ||
main: | | ||
from pair import Missing | ||
out: | | ||
main:1: error: Module "pair" has no attribute "Missing" | ||
env: | ||
- MYPYPATH=./pytest_mypy_plugins/tests/fixtures | ||
|
||
|
||
- case: add_mypypath_env_var_to_package_search | ||
main: | | ||
import extra_module | ||
extra_module.extra_fn() | ||
extra_module.missing() # E: Module has no attribute "missing" | ||
env: | ||
- MYPYPATH=./extras | ||
- MYPYPATH=../extras | ||
files: | ||
- path: extras/extra_module.py | ||
- path: ../extras/extra_module.py | ||
content: | | ||
def extra_fn(): | ||
def extra_fn() -> None: | ||
pass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
|
||
dependencies = [ | ||
"pytest>=6.0.0", | ||
"mypy>=0.900", | ||
"mypy>=0.970", | ||
"decorator", | ||
"pyyaml", | ||
"chevron", | ||
|
@@ -15,24 +15,26 @@ | |
|
||
setup( | ||
name="pytest-mypy-plugins", | ||
version="1.9.3", | ||
version="1.10.0", | ||
description="pytest plugin for writing tests for mypy plugins", | ||
long_description=readme, | ||
long_description_content_type="text/markdown", | ||
license="MIT", | ||
url="https://github.com/TypedDjango/pytest-mypy-plugins", | ||
author="Maksim Kurnikov", | ||
author_email="[email protected]", | ||
maintainer="Nikita Sobolev", | ||
maintainer_email="[email protected]", | ||
packages=["pytest_mypy_plugins"], | ||
# the following makes a plugin available to pytest | ||
entry_points={"pytest11": ["pytest-mypy-plugins = pytest_mypy_plugins.collect"]}, | ||
install_requires=dependencies, | ||
python_requires=">=3.6", | ||
python_requires=">=3.7", | ||
package_data={ | ||
"pytest_mypy_plugins": ["py.typed"], | ||
}, | ||
classifiers=[ | ||
"Development Status :: 3 - Alpha", | ||
"Development Status :: 4 - Beta", | ||
"License :: OSI Approved :: MIT License", | ||
"Programming Language :: Python :: 3.6", | ||
"Programming Language :: Python :: 3.7", | ||
|