summaryrefslogtreecommitdiff
path: root/.travis.yml
diff options
context:
space:
mode:
authorRichard Zou <zou3519@users.noreply.github.com>2018-02-23 13:33:59 -0500
committerSoumith Chintala <soumith@gmail.com>2018-02-23 13:33:59 -0500
commitdcbbf346c29a296160982a6f48c7cb925b03a57f (patch)
tree4d231bc4ce428554aafa6380f4bad1c34211c633 /.travis.yml
parent2130070785033e4badc0e64a9f77d256a3a767c1 (diff)
downloadpytorch-dcbbf346c29a296160982a6f48c7cb925b03a57f.tar.gz
pytorch-dcbbf346c29a296160982a6f48c7cb925b03a57f.tar.bz2
pytorch-dcbbf346c29a296160982a6f48c7cb925b03a57f.zip
Change output_declarations in function_wrapper.py to be a NamedTuple (#5312)
* Add python typing module as build dependency * Change output_declarations to be a NamedTuple * Add mypy configuration files mypy-files.txt includes a list of all files that should be typed checked with mypy. Run mypy with `mypy @mypyfiles.txt`. mypy.ini includes mypy options. Unfortunately this can't be merged with mypy-files.txt. Update .travis.yml so that one doesn't have to specify what files to type check inside it. * Add RuntimeError on missing `typing` module Alerts users to the new build dependency.
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml3
1 files changed, 1 insertions, 2 deletions
diff --git a/.travis.yml b/.travis.yml
index 1c4a55907c..6d82759b09 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -16,8 +16,7 @@ matrix:
python: "2.7"
install: pip install flake8
script: flake8
- # mypy will complain about various files. Limiting it to only typed files
- env: MYPY_TYPE_CHECK
python: "3.6"
install: pip install mypy mypy-extensions
- script: mypy --py2 aten/src/ATen/function_wrapper.py
+ script: mypy @mypy-files.txt