提交 16b1bb99 编写于 作者: J jrzaurin

changed travis.yml format to test build

上级 fc226f90
......@@ -3,20 +3,21 @@ language: python
python:
- "3.6"
- "3.7"
# matrix:
# fast_finish: true
# - 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
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 .
......
......@@ -58,4 +58,4 @@ if __name__ == "__main__":
n_epochs=1,
batch_size=32,
val_split=0.2,
)
\ No newline at end of file
)
......@@ -16,7 +16,6 @@ from ..utils.image_utils import AspectAwarePreprocessor, SimplePreprocessor
class BasePreprocessor(object):
def fit(self, df: pd.DataFrame):
raise NotImplementedError("Preprocessor must implement this method")
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册