mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 21:14:14 +08:00
* 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.
23 lines
593 B
YAML
23 lines
593 B
YAML
# https://travis-ci.org/pytorch/pytorch
|
|
language: python
|
|
dist: trusty
|
|
git:
|
|
submodules: false
|
|
|
|
# This reportedly works around an issue downloading packages from pypi on
|
|
# travis. Consider removing this after the underlying issue is fixed.
|
|
# https://github.com/travis-ci/travis-ci/issues/2389
|
|
sudo: false
|
|
|
|
matrix:
|
|
fast_finish: true
|
|
include:
|
|
- env: LINT_CHECK
|
|
python: "2.7"
|
|
install: pip install flake8
|
|
script: flake8
|
|
- env: MYPY_TYPE_CHECK
|
|
python: "3.6"
|
|
install: pip install mypy mypy-extensions
|
|
script: mypy @mypy-files.txt
|