mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 21:14:14 +08:00
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:
committed by
Facebook Github Bot
parent
544783fa1d
commit
48a35135fb
@ -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
|
||||
|
||||
Reference in New Issue
Block a user