Convert all tabs to spaces, add CI. (#18959)

Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/18959
ghimport-source-id: a934163fa34cb2019732d5f49dc7290c376bf156

Differential Revision: D14831246

Pulled By: ezyang

fbshipit-source-id: beb92dc4ee8c82f4c8259c081dd72e477fe7a9d0
This commit is contained in:
Edward Yang
2019-04-09 08:02:30 -07:00
committed by Facebook Github Bot
parent 544783fa1d
commit 48a35135fb
80 changed files with 1509 additions and 1505 deletions

View File

@ -16,6 +16,10 @@ matrix:
python: "3.6"
dist: xenial
script: cd .circleci && ./ensure-consistency.py
- name: "Ensure no tabs"
python: "2.7"
script:
- (! git grep -I -l $'\t' -- . ':(exclude)*.svg' ':(exclude)**Makefile' ':(exclude)**/contrib/**' ':(exclude)third_party' ':(exclude).gitattributes' ':(exclude).gitmodules' || (echo "The above files have tabs; please convert them to spaces"; false))
- name: "Python 2.7 Lint"
python: "2.7"
install: pip install flake8