Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] Add pep8 to Travis #973

Closed
wants to merge 11 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions .coafile
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
[default]
files = *.py, gensim/**/*.py

max_line_length = 120
use_spaces = True

[python]
bears = PEP8Bear
pep_ignore = E701,E241

[autopep8]
bears = PEP8Bear
default_actions = PEP8Bear: ApplyPatchAction




9 changes: 8 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,18 @@ before_install:
- ./miniconda.sh -b
- export PATH=/home/travis/miniconda2/bin:$PATH
- conda update --yes conda
- pip install --upgrade pip
- pip3 install coala
- pip3 install coala-bears
install:
- conda create --yes -n gensim-test python=$TRAVIS_PYTHON_VERSION pip atlas numpy scipy
- source activate gensim-test
- pip install pyemd
- pip install annoy
- pip install testfixtures
- python setup.py install
script: python setup.py test

script:
- python setup.py test
- coala --non-interactive