summaryrefslogtreecommitdiff
path: root/.travis.yml
diff options
context:
space:
mode:
authorElias Ellison <eellison@fb.com>2019-03-07 09:12:35 -0800
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>2019-03-07 09:15:54 -0800
commit561037aef8134d81479fac6cdbd196d3652fd8e7 (patch)
tree870c2dcb769d03b97a2a1dbf11d378e92dfad105 /.travis.yml
parent1d522598fb97e26f9e518116a9c7fa0f22735d8d (diff)
downloadpytorch-561037aef8134d81479fac6cdbd196d3652fd8e7.tar.gz
pytorch-561037aef8134d81479fac6cdbd196d3652fd8e7.tar.bz2
pytorch-561037aef8134d81479fac6cdbd196d3652fd8e7.zip
use flake8-mypy (#17721)
Summary: Use flake8 installed with mypy checks so that our linter matches fbcode. Mypy type errors also provide valuable signal Pull Request resolved: https://github.com/pytorch/pytorch/pull/17721 Differential Revision: D14357778 Pulled By: eellison fbshipit-source-id: d8c9ea3fe3b5f550c3b70fe259e0eabf95e4c92d
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml2
1 files changed, 1 insertions, 1 deletions
diff --git a/.travis.yml b/.travis.yml
index 8d1da417ce..6aa70770fc 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -29,7 +29,7 @@ matrix:
python: "3.7"
dist: xenial # required for Python 3.7 (travis-ci/travis-ci#9069)
sudo: required # required for Python 3.7 (travis-ci/travis-ci#9069)
- install: pip install flake8
+ install: pip install flake8-mypy
script: flake8
- name: "MyPy typecheck"
python: "3.6"