Commit ba5ee134 authored by leswing's avatar leswing
Browse files

Add versions to yapf

parent 0c9763aa
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -24,7 +24,7 @@ install:
- conda install -c conda-forge protobuf=3.1.0
- conda install -c omnia mdtraj
- pip install tensorflow==0.12.1
- pip install yapf
- pip install yapf==0.16.0
- python setup.py install
script:
- nosetests -v deepchem --nologcapture
+1 −1
Original line number Diff line number Diff line
@@ -387,7 +387,7 @@ DeepChem uses [yapf](https://github.com/google/yapf) to autoformat code. We cre

``` bash
cp devtools/travis-ci/pre-commit .git/hooks
pip install yapf
pip install yapf==0.16.0
```

### Documentation Style Guidelines
+2 −1
Original line number Diff line number Diff line
#!/bin/sh
CHANGED_FILES=`git diff --cached --name-only | grep .py$`
CHANGED_FILES=`git diff --cached --name-only | grep .py`
if [ -z $CHANGED_FILES ]
then
    echo "No Python Files Changed"
else
    echo $CHANGED_FILES
    yapf -i $CHANGED_FILES
    git diff --name-only --cached | xargs -l git add
fi