Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Type checking #83

Merged
merged 12 commits into from
Jun 22, 2020
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
2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ matrix:
env: TOXENV=py38
- python: 3.8
env: TOXENV=flake8
- python: 3.8
env: TOXENV=mypy
- python: 3.8
env: TOXENV=dist
- python: 3.8
Expand Down
1 change: 1 addition & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ include requirements-dev.txt
include *.md
include .bumpversion.cfg
include tox.ini
include mypy.ini
include pyproject.toml

# Code and test files
Expand Down
24 changes: 24 additions & 0 deletions mypy.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Global options:

[mypy]
python_version = 3.6

# Per-module options:

[mypy-ipython_genutils.*]
ignore_missing_imports = True

[mypy-nbformat.*]
ignore_missing_imports = True

[mypy-nest_asyncio.*]
ignore_missing_imports = True

[mypy-async_generator.*]
ignore_missing_imports = True

[mypy-traitlets.*]
ignore_missing_imports = True

[mypy-jupyter_client.*]
ignore_missing_imports = True
2 changes: 1 addition & 1 deletion nbclient/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from ._version import version as __version__ # noqa: F401


def _cleanup():
def _cleanup() -> None:
pass


Expand Down
Loading