Skip to content

Commit 1383935

Browse files
committed
Add mypy to travis and fix doc issues
1 parent 4df4285 commit 1383935

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ jobs:
4242
- "invoke black"
4343
- "invoke bandit" # Bandit fails to function on > Py3.8 https://github.com/PyCQA/bandit/issues/639
4444
- "invoke pydocstyle"
45+
- "invoke mypy"
4546
- "invoke flake8"
4647
- "invoke yamllint"
4748
- "invoke pylint"

tasks.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
import os
1818
import sys
1919
from distutils.util import strtobool
20-
from invoke import task
20+
from invoke import task # type: ignore
2121

2222
try:
2323
import toml
@@ -188,10 +188,12 @@ def flake8(context, name=NAME, image_ver=IMAGE_VER, local=INVOKE_LOCAL):
188188
@task
189189
def mypy(context, name=NAME, image_ver=IMAGE_VER, local=INVOKE_LOCAL):
190190
"""This will run mypy for the specified name and Python version.
191+
191192
Args:
192193
context (obj): Used to run specific commands
193194
name (str): Used to name the docker image
194-
python_ver (str): Will use the Python version docker image to build from
195+
image_ver (str): Define image version
196+
local (bool): Define as `True` to execute locally
195197
"""
196198
# pty is set to true to properly run the docker commands due to the invocation process of docker
197199
# https://docs.pyinvoke.org/en/latest/api/runners.html - Search for pty for more information

0 commit comments

Comments
 (0)