diff --git a/.coafile b/.coafile new file mode 100644 index 0000000000..e01effc4fe --- /dev/null +++ b/.coafile @@ -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 + + + + diff --git a/.travis.yml b/.travis.yml index 18f7502e71..4a4eeff2fe 100644 --- a/.travis.yml +++ b/.travis.yml @@ -12,6 +12,9 @@ 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 @@ -19,4 +22,8 @@ install: - pip install annoy - pip install testfixtures - python setup.py install -script: python setup.py test + +script: + - python setup.py test + - coala --non-interactive +