forked from jrzaurin/pytorch-widedeep
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
25 lines (25 loc) · 844 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
dist: xenial
language: python
python:
- "3.6"
- "3.7"
matrix:
fast_finish: true
include:
- name: "Code Style (Black/Flake8)"
install:
- pip install black
- pip install flake8
script:
# Black code style
- black --check --diff pytorch_widedeep tests examples setup.py
# Stop the build if there are Python syntax errors or undefined names
- flake8 . --count --select=E901,E999,F821,F822,F823 --ignore=E266 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
- flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --ignore=E203,E266,E501,E722,F401,F403,F405,W503,C901 --statistics
after_success: skip
install:
- pip install --upgrade pip
- pip install .
script:
- pytest tests