mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 12:54:11 +08:00
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
32 lines
601 B
YAML
32 lines
601 B
YAML
# https://travis-ci.org/zdevito/ATen
|
|
language: python
|
|
python:
|
|
- 2.7
|
|
- 3.6
|
|
|
|
dist: trusty
|
|
|
|
before_install:
|
|
- sudo apt-get install -qq valgrind
|
|
|
|
install:
|
|
- travis_retry pip install pyyaml typing
|
|
|
|
script:
|
|
- cd aten
|
|
- mkdir build install
|
|
- cd build
|
|
- cmake .. -DUSE_CUDA=OFF -DCMAKE_INSTALL_PREFIX=../install
|
|
- make install
|
|
- ../tools/run_tests.sh .
|
|
- cd ..
|
|
- tools/test_install.sh $(pwd)/install $(pwd)
|
|
|
|
matrix:
|
|
fast_finish: true
|
|
include:
|
|
env: LINT_CHECK
|
|
python: "2.7"
|
|
install: pip install flake8-mypy
|
|
script: flake8
|