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

coala-quickstart.py: Change the printing of bears #227

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

tallicamike
Copy link

Remove duplicate printing of relevant_bears`` and instead change print_relevant_bears` to inform the user both of the usable and
unusable bears.

Closes #220

@jayvdb
Copy link
Member

jayvdb commented May 24, 2018

@gitmate-bot rebase

@gitmate-bot
Copy link

Hey! I'm GitMate.io! This pull request is being rebased automatically. Please DO NOT push while rebase is in progress or your changes would be lost permanently ⚠️

@gitmate-bot
Copy link

Automated rebase with GitMate.io was successful! 🎉

@TravisBuddy
Copy link

Travis tests have failed

Hey @tallicamike,
Please read the following log in order to understand the failure reason.
It'll be awesome if you fix what's wrong and commit the changes.

3rd Build

pytest
Collecting pytest-cov~=2.2 (from -r test-requirements.txt (line 5))
  Using cached https://files.pythonhosted.org/packages/30/7d/7f6a78ae44a1248ee28cc777586c18b28a1df903470e5d34a6e25712b8aa/pytest_cov-2.5.1-py2.py3-none-any.whl
Collecting pytest-env>=0.6.0 (from -r test-requirements.txt (line 6))
Collecting pytest-timeout>=1.0.0 (from -r test-requirements.txt (line 7))
  Using cached https://files.pythonhosted.org/packages/69/7f/33a67c2494c6c337daca935192b7de09d30b54e568c981ed0681380393c4/pytest_timeout-1.2.1-py2.py3-none-any.whl
Collecting pytest-xdist>=1.14 (from -r test-requirements.txt (line 8))
  Using cached https://files.pythonhosted.org/packages/30/77/78da3a2ace46a7bee0059d5772472f95f31bf2ba0ce8dbb8e4d8582c323c/pytest_xdist-1.22.2-py2.py3-none-any.whl
Collecting cpplint~=1.3 (from coala_bears~=0.12.0.dev20170722110839->-r requirements.txt (line 3))
Collecting coala>=0.12.0.dev20170828055500 (from coala_bears~=0.12.0.dev20170722110839->-r requirements.txt (line 3))
  Using cached https://files.pythonhosted.org/packages/24/5c/15242d3079510651c410f56672e6eceabda5b4e53b97344419c79e4239b3/coala-0.12.0.dev20180101025653-py34.py35.py36-none-any.whl
Collecting cmakelint~=1.3 (from coala_bears~=0.12.0.dev20170722110839->-r requirements.txt (line 3))
Collecting isort~=4.2 (from coala_bears~=0.12.0.dev20170722110839->-r requirements.txt (line 3))
  Using cached https://files.pythonhosted.org/packages/1f/2c/22eee714d7199ae0464beda6ad5fedec8fee6a2f7ffd1e8f1840928fe318/isort-4.3.4-py3-none-any.whl
Collecting pyroma~=2.2.0 (from coala_bears~=0.12.0.dev20170722110839->-r requirements.txt (line 3))
Collecting mypy-lang~=0.4.6 (from coala_bears~=0.12.0.dev20170722110839->-r requirements.txt (line 3))
Collecting HTTPolice~=0.5.2 (from coala_bears~=0.12.0.dev20170722110839->-r requirements.txt (line 3))
  Using cached https://files.pythonhosted.org/packages/3a/b4/ad13fae41373a0734388b7fee1418fb9cdc57662ef46e25bcf805428c187/HTTPolice-0.5.2-py2.py3-none-any.whl
Collecting docutils-ast-writer~=0.1.2 (from coala_bears~=0.12.0.dev20170722110839->-r requirements.txt (line 3))
Collecting proselint~=0.7.0 (from coala_bears~=0.12.0.dev20170722110839->-r requirements.txt (line 3))
Collecting nltk~=3.2 (from coala_bears~=0.12.0.dev20170722110839->-r requirements.txt (line 3))
Collecting vulture~=0.25.0 (from coala_bears~=0.12.0.dev20170722110839->-r requirements.txt (line 3))
  Using cached https://files.pythonhosted.org/packages/98/d7/3cc454c33422f1c43255928e7b4bac77a0bcabb113a946997edc60a2a176/vulture-0.25-py2.py3-none-any.whl
Collecting nbformat~=4.1 (from coala_bears~=0.12.0.dev20170722110839->-r requirements.txt (line 3))
  Using cached https://files.pythonhosted.org/packages/da/27/9a654d2b6cc1eaa517d1c5a4405166c7f6d72f04f6e7eea41855fe808a46/nbformat-4.4.0-py2.py3-none-any.whl
Collecting html-linter~=0.3.0 (from coala_bears~=0.12.0.dev20170722110839->-r requirements.txt (line 3))
Collecting pyflakes~=1.5.0 (from coala_bears~=0.12.0.dev20170722110839->-r requirements.txt (line 3))
  Using cached https://files.pythonhosted.org/packages/27/49/924098b3b85c286696f37e014475d79471ffc44509613af420645a3c12cb/pyflakes-1.5.0-py2.py3-none-any.whl
Collecting pydocstyle~=2.0 (from coala_bears~=0.12.0.dev20170722110839->-r requirements.txt (line 3))
  Using cached https://files.pythonhosted.org/packages/43/8a/f1141af0c8406788a5c38ad5001d4163d903b5384a6517239d2ac42734c8/pydocstyle-2.1.1-py3-none-any.whl
Collecting guess-language-spirit~=0.5.2 (from coala_bears~=0.12.0.dev20170722110839->-r requirements.txt (line 3))
Collecting yamllint~=1.6.1 (from coala_bears~=0.12.0.dev20170722110839->-r requirements.txt (line 3))
  Using cached https://files.pythonhosted.org/packages/07/cf/213a023883122cc527bdc5cab135a4e30af93c1a0feaa6cabc16aaee68ac/yamllint-1.6.1-py2.py3-none-any.whl
Collecting yapf~=0.16.0 (from coala_bears~=0.12.0.dev20170722110839->-r requirements.txt (line 3))
  Using cached https://files.pythonhosted.org/packages/09/09/b062eb42ba2751ee29c4d227a3502ff4de617adbc744dd985134c35bf0b3/yapf-0.16.3-py2.py3-none-any.whl
Collecting bandit~=1.2 (from coala_bears~=0.12.0.dev20170722110839->-r requirements.txt (line 3))
  Using cached https://files.pythonhosted.org/packages/77/41/d57366098a30a86af1821e231949221d2b6b896cc4bdd060cc1be27fdd47/bandit-1.4.0-py2.py3-none-any.whl
Collecting radon==1.4.0 (from coala_bears~=0.12.0.dev20170722110839->-r requirements.txt (line 3))
  Using cached https://files.pythonhosted.org/packages/b1/24/594df18af8141787d8e2d694fbc898fd26f0aa26597fe6f6652cdb773a7f/radon-1.4.0-py2.py3-none-any.whl
Collecting dennis~=0.8 (from coala_bears~=0.12.0.dev20170722110839->-r requirements.txt (line 3))
  Using cached https://files.pythonhosted.org/packages/2d/2e/2cb43a5e787387b558d2eeefc2713305d2df97c4622cee37b1e6f5505031/dennis-0.9-py2.py3-none-any.whl
Collecting aenum~=2.0.8 (from coala_bears~=0.12.0.dev20170722110839->-r requirements.txt (line 3))
  Using cached https://files.pythonhosted.org/packages/01/11/e0b5efc82daace980210c1b5f1458676ccc6513514955678801b44f9169c/aenum-2.0.10-py3-none-any.whl
Collecting munkres3~=1.0 (from coala_bears~=0.12.0.dev20170722110839->-r requirements.txt (line 3))
Collecting eradicate~=0.1.6 (from coala_bears~=0.12.0.dev20170722110839->-r requirements.txt (line 3))
Collecting cppclean~=0.12.0 (from coala_bears~=0.12.0.dev20170722110839->-r requirements.txt (line 3))
Collecting restructuredtext-lint~=1.0.0 (from coala_bears~=0.12.0.dev20170722110839->-r requirements.txt (line 3))
Collecting click==6.6 (from coala_bears~=0.12.0.dev20170722110839->-r requirements.txt (line 3))
  Using cached https://files.pythonhosted.org/packages/1c/7c/10b4132dd952b6a04e37626258825b8aa8c1eb99545f2eb26a77c21efb55/click-6.6-py2.py3-none-any.whl
Collecting autoflake~=0.7 (from coala_bears~=0.12.0.dev20170722110839->-r requirements.txt (line 3))
Collecting scspell3k~=2.0 (from coala_bears~=0.12.0.dev20170722110839->-r requirements.txt (line 3))
Collecting rstcheck~=3.1 (from coala_bears~=0.12.0.dev20170722110839->-r requirements.txt (line 3))
Collecting pyyaml~=3.12 (from coala_bears~=0.12.0.dev20170722110839->-r requirements.txt (line 3))
Collecting pycodestyle~=2.2 (from coala_bears~=0.12.0.dev20170722110839->-r requirements.txt (line 3))
  Using cached https://files.pythonhosted.org/packages/e5/c6/ce130213489969aa58610042dff1d908c25c731c9575af6935c2dfad03aa/pycodestyle-2.4.0-py2.py3-none-any.whl
Collecting apertium-lint~=0.29 (from coala_bears~=0.12.0.dev20170722110839->-r requirements.txt (line 3))
Collecting autopep8~=1.2 (from coala_bears~=0.12.0.dev20170722110839->-r requirements.txt (line 3))
Collecting pylint~=1.6 (from coala_bears~=0.12.0.dev20170722110839->-r requirements.txt (line 3))
  Using cached https://files.pythonhosted.org/packages/3f/88/e0c9a506255ae3915ac1f183a13853d5b4a3e435972d0df6ea190d5d1e96/pylint-1.9.1-py2.py3-none-any.whl
Collecting safety~=0.5.1 (from coala_bears~=0.12.0.dev20170722110839->-r requirements.txt (line 3))
  Using cached https://files.pythonhosted.org/packages/78/91/710fd502f4a04c7eac855fd8cdd25c471aae86d86d944e1ab21cd6ec5ca7/safety-0.5.1-py2.py3-none-any.whl
Collecting memento-client~=0.6.1 (from coala_bears~=0.12.0.dev20170722110839->-r requirements.txt (line 3))
  Using cached https://files.pythonhosted.org/packages/41/8d/8dfc683c1228779b2eb6e80681e70d450b20fce58d53483fb6e5c7f6ff34/memento_client-0.6.1-py2.py3-none-any.whl
Collecting vim-vint~=0.3.12 (from coala_bears~=0.12.0.dev20170722110839->-r requirements.txt (line 3))
Collecting pyprint==0.2.* (from coala_utils~=0.6.6->-r requirements.txt (line 4))
  Using cached https://files.pythonhosted.org/packages/b0/45/8912d660c6accfe665f6649433362aa0eb9a94a3a71ee3a71d8956f0a4ed/PyPrint-0.2.6-py3-none-any.whl
Collecting appdirs==1.4.* (from coala_utils~=0.6.6->-r requirements.txt (line 4))
  Using cached https://files.pythonhosted.org/packages/56/eb/810e700ed1349edde4cbdc1b2a21e28cdf115f9faf263f6bbf8447c1abf3/appdirs-1.4.3-py2.py3-none-any.whl
Requirement already satisfied: nose in /home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages (from gemfileparser~=0.6.2->-r requirements.txt (line 5))
Collecting requests>=2.7.9 (from codecov~=2.0.5->-r test-requirements.txt (line 2))
  Using cached https://files.pythonhosted.org/packages/49/df/50aa1999ab9bde74656c2919d9c0c085fd2b3775fd3eca826012bef76d8c/requests-2.18.4-py2.py3-none-any.whl
Collecting pyparsing (from packaging~=16.8->-r test-requirements.txt (line 3))
  Using cached https://files.pythonhosted.org/packages/6a/8a/718fd7d3458f9fab8e67186b00abdd345b639976bc7fb3ae722e1b026a50/pyparsing-2.2.0-py2.py3-none-any.whl
Requirement already satisfied: six in /home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages (from packaging~=16.8->-r test-requirements.txt (line 3))
Requirement already satisfied: setuptools in /home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages (from pytest~=3.0->-r test-requirements.txt (line 4))
Requirement already satisfied: py>=1.5.0 in /home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages (from pytest~=3.0->-r test-requirements.txt (line 4))
Requirement already satisfied: pluggy<0.7,>=0.5 in /home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages (from pytest~=3.0->-r test-requirements.txt (line 4))
Requirement already satisfied: attrs>=17.2.0 in /home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages (from pytest~=3.0->-r test-requirements.txt (line 4))
Collecting pytest-forked (from pytest-xdist>=1.14->-r test-requirements.txt (line 8))
  Using cached https://files.pythonhosted.org/packages/dd/9d/fb75af584b850a902c9ce5ec96ea5c623978113b8a240ab414e1a435df93/pytest_forked-0.2-py2.py3-none-any.whl
Collecting execnet>=1.1 (from pytest-xdist>=1.14->-r test-requirements.txt (line 8))
  Using cached https://files.pythonhosted.org/packages/f9/76/3343e69a2a1602052f587898934e5fea395d22310d39c07955596597227c/execnet-1.5.0-py2.py3-none-any.whl
Collecting Pygments~=2.1 (from coala>=0.12.0.dev20170828055500->coala_bears~=0.12.0.dev20170722110839->-r requirements.txt (line 3))
  Using cached https://files.pythonhosted.org/packages/02/ee/b6e02dc6529e82b75bb06823ff7d005b141037cb1416b10c6f00fc419dca/Pygments-2.2.0-py2.py3-none-any.whl
Collecting libclang-py3~=3.4.0 (from coala>=0.12.0.dev20170828055500->coala_bears~=0.12.0.dev20170722110839->-r requirements.txt (line 3))
Collecting dependency-management~=0.4.0 (from coala>=0.12.0.dev20170828055500->coala_bears~=0.12.0.dev20170722110839->-r requirements.txt (line 3))
  Using cached https://files.pythonhosted.org/packages/1d/c7/e1ff3d4b90b1a4197e90bb43c87200ce89c677e26dadbc55cc9f943de47b/dependency_management-0.4.0-py3-none-any.whl
Collecting testfixtures~=4.14.3 (from coala>=0.12.0.dev20170828055500->coala_bears~=0.12.0.dev20170722110839->-r requirements.txt (line 3))
  Using cached https://files.pythonhosted.org/packages/6c/4e/0381a0ead1f270f0bd2854e3ad40c24242bcf9ee99093e786111f831cad2/testfixtures-4.14.3-py2.py3-none-any.whl
Collecting colorlog~=2.7 (from coala>=0.12.0.dev20170828055500->coala_bears~=0.12.0.dev20170722110839->-r requirements.txt (line 3))
  Using cached https://files.pythonhosted.org/packages/61/ff/d6337d488739c1a7ade37f736880e44717bcb0e7cea178c17774a4a93700/colorlog-2.10.0-py2.py3-none-any.whl
Collecting unidiff~=0.5.2 (from coala>=0.12.0.dev20170828055500->coala_bears~=0.12.0.dev20170722110839->-r requirements.txt (line 3))
  Using cached https://files.pythonhosted.org/packages/68/52/c7278fc3c17d1aaade84597968d88f97f0f4ec7288ddedb6970a341c5170/unidiff-0.5.5-py2.py3-none-any.whl
Collecting docutils (from pyroma~=2.2.0->coala_bears~=0.12.0.dev20170722110839->-r requirements.txt (line 3))
  Using cached https://files.pythonhosted.org/packages/36/fa/08e9e6e0e3cbd1d362c3bbee8d01d0aedb2155c4ac112b19ef3cae8eed8d/docutils-0.14-py3-none-any.whl
Collecting singledispatch>=3.4.0.3 (from HTTPolice~=0.5.2->coala_bears~=0.12.0.dev20170722110839->-r requirements.txt (line 3))
  Using cached https://files.pythonhosted.org/packages/c5/10/369f50bcd4621b263927b0a1519987a04383d4a98fb10438042ad410cf88/singledispatch-3.4.0.3-py2.py3-none-any.whl
Collecting dominate>=2.2.0 (from HTTPolice~=0.5.2->coala_bears~=0.12.0.dev20170722110839->-r requirements.txt (line 3))
Collecting defusedxml>=0.5.0 (from HTTPolice~=0.5.2->coala_bears~=0.12.0.dev20170722110839->-r requirements.txt (line 3))
  Using cached https://files.pythonhosted.org/packages/87/1c/17f3e3935a913dfe2a5ca85fa5ccbef366bfd82eb318b1f75dadbf0affca/defusedxml-0.5.0-py2.py3-none-any.whl
Collecting brotlipy>=0.5.1 (from HTTPolice~=0.5.2->coala_bears~=0.12.0.dev20170722110839->-r requirements.txt (line 3))
  Using cached https://files.pythonhosted.org/packages/b8/e6/be86d2d6565fcf4bd82cca288ac1e264a50dbfa41bef86b63b5d69252fca/brotlipy-0.7.0-cp36-cp36m-manylinux1_x86_64.whl
Collecting bitstring>=3.1.4 (from HTTPolice~=0.5.2->coala_bears~=0.12.0.dev20170722110839->-r requirements.txt (line 3))
Collecting future (from proselint~=0.7.0->coala_bears~=0.12.0.dev20170722110839->-r requirements.txt (line 3))
Collecting ipython-genutils (from nbformat~=4.1->coala_bears~=0.12.0.dev20170722110839->-r requirements.txt (line 3))
  Using cached https://files.pythonhosted.org/packages/fa/bc/9bd3b5c2b4774d5f33b2d544f1460be9df7df2fe42f352135381c347c69a/ipython_genutils-0.2.0-py2.py3-none-any.whl
Collecting traitlets>=4.1 (from nbformat~=4.1->coala_bears~=0.12.0.dev20170722110839->-r requirements.txt (line 3))
  Using cached https://files.pythonhosted.org/packages/93/d6/abcb22de61d78e2fc3959c964628a5771e47e7cc60d53e9342e21ed6cc9a/traitlets-4.3.2-py2.py3-none-any.whl
Collecting jsonschema!=2.5.0,>=2.4 (from nbformat~=4.1->coala_bears~=0.12.0.dev20170722110839->-r requirements.txt (line 3))
  Using cached https://files.pythonhosted.org/packages/77/de/47e35a97b2b05c2fadbec67d44cfcdcd09b8086951b331d82de90d2912da/jsonschema-2.6.0-py2.py3-none-any.whl
Collecting jupyter-core (from nbformat~=4.1->coala_bears~=0.12.0.dev20170722110839->-r requirements.txt (line 3))
  Using cached https://files.pythonhosted.org/packages/1d/44/065d2d7bae7bebc06f1dd70d23c36da8c50c0f08b4236716743d706762a8/jupyter_core-4.4.0-py2.py3-none-any.whl
Collecting docopt>=0.6.1 (from html-linter~=0.3.0->coala_bears~=0.12.0.dev20170722110839->-r requirements.txt (line 3))
Collecting template-remover (from html-linter~=0.3.0->coala_bears~=0.12.0.dev20170722110839->-r requirements.txt (line 3))
Collecting snowballstemmer (from pydocstyle~=2.0->coala_bears~=0.12.0.dev20170722110839->-r requirements.txt (line 3))
  Using cached https://files.pythonhosted.org/packages/d4/6c/8a935e2c7b54a37714656d753e4187ee0631988184ed50c0cf6476858566/snowballstemmer-1.2.1-py2.py3-none-any.whl
Collecting stevedore>=1.17.1 (from bandit~=1.2->coala_bears~=0.12.0.dev20170722110839->-r requirements.txt (line 3))
  Using cached https://files.pythonhosted.org/packages/17/6b/3b7d6d08b2ab3e5ef09e01c9f7b3b590ee135f289bb94553419e40922c25/stevedore-1.28.0-py2.py3-none-any.whl
Collecting GitPython>=1.0.1 (from bandit~=1.2->coala_bears~=0.12.0.dev20170722110839->-r requirements.txt (line 3))
  Using cached https://files.pythonhosted.org/packages/ac/c9/96d7c86c623cb065976e58c0f4898170507724d6b4be872891d763d686f4/GitPython-2.1.10-py2.py3-none-any.whl
Collecting colorama<0.4,>=0.3 (from radon==1.4.0->coala_bears~=0.12.0.dev20170722110839->-r requirements.txt (line 3))
  Using cached https://files.pythonhosted.org/packages/db/c8/7dcf9dbcb22429512708fe3a547f8b6101c0d02137acbd892505aee57adf/colorama-0.3.9-py2.py3-none-any.whl
Collecting mando<0.4,>=0.3 (from radon==1.4.0->coala_bears~=0.12.0.dev20170722110839->-r requirements.txt (line 3))
  Using cached https://files.pythonhosted.org/packages/4a/77/180f0b61dca785a6b76c4f1ba611100fbc628abeb8415fa7c5c4c5d99e0b/mando-0.3.3-py2.py3-none-any.whl
Collecting polib>=1.0.8 (from dennis~=0.8->coala_bears~=0.12.0.dev20170722110839->-r requirements.txt (line 3))
  Using cached https://files.pythonhosted.org/packages/30/a2/e407c3b00cace3d7fc8df14d364deeecfeb96044e1a317de583bc26eae58/polib-1.1.0-py2.py3-none-any.whl
Collecting astroid<2.0,>=1.6 (from pylint~=1.6->coala_bears~=0.12.0.dev20170722110839->-r requirements.txt (line 3))
  Using cached https://files.pythonhosted.org/packages/7f/4f/162e1c859f59031ee7d3ff48ca6a3eaa699e4b8bfcb4f2988b5677d74605/astroid-1.6.4-py2.py3-none-any.whl
Collecting mccabe (from pylint~=1.6->coala_bears~=0.12.0.dev20170722110839->-r requirements.txt (line 3))
  Using cached https://files.pythonhosted.org/packages/87/89/479dc97e18549e21354893e4ee4ef36db1d237534982482c3681ee6e7b57/mccabe-0.6.1-py2.py3-none-any.whl
Collecting chardet>=2.3.0 (from vim-vint~=0.3.12->coala_bears~=0.12.0.dev20170722110839->-r requirements.txt (line 3))
  Using cached https://files.pythonhosted.org/packages/bc/a9/01ffebfb562e4274b6487b4bb1ddec7ca55ec7510b22e4c51f14098443b8/chardet-3.0.4-py2.py3-none-any.whl
Collecting ansicolor~=0.2.4 (from vim-vint~=0.3.12->coala_bears~=0.12.0.dev20170722110839->-r requirements.txt (line 3))
  Using cached https://files.pythonhosted.org/packages/42/0b/f370fae6d0070758e8bbf46c77da779e4ea79870ea5197893b2678848aeb/ansicolor-0.2.6-py2.py3-none-any.whl
Collecting termcolor~=1.1.0 (from pyprint==0.2.*->coala_utils~=0.6.6->-r requirements.txt (line 4))
Collecting idna<2.7,>=2.5 (from requests>=2.7.9->codecov~=2.0.5->-r test-requirements.txt (line 2))
  Using cached https://files.pythonhosted.org/packages/27/cc/6dd9a3869f15c2edfab863b992838277279ce92663d334df9ecf5106f5c6/idna-2.6-py2.py3-none-any.whl
Collecting certifi>=2017.4.17 (from requests>=2.7.9->codecov~=2.0.5->-r test-requirements.txt (line 2))
  Using cached https://files.pythonhosted.org/packages/7c/e6/92ad559b7192d846975fc916b65f667c7b8c3a32bea7372340bfe9a15fa5/certifi-2018.4.16-py2.py3-none-any.whl
Collecting urllib3<1.23,>=1.21.1 (from requests>=2.7.9->codecov~=2.0.5->-r test-requirements.txt (line 2))
  Using cached https://files.pythonhosted.org/packages/63/cb/6965947c13a94236f6d4b8223e21beb4d576dc72e8130bd7880f600839b8/urllib3-1.22-py2.py3-none-any.whl
Collecting apipkg>=1.4 (from execnet>=1.1->pytest-xdist>=1.14->-r test-requirements.txt (line 8))
  Using cached https://files.pythonhosted.org/packages/94/72/fd4f2e46ce7b0d388191c819ef691c8195fab09602bbf1a2f92aa5351444/apipkg-1.4-py2.py3-none-any.whl
Collecting sarge~=0.1.4 (from dependency-management~=0.4.0->coala>=0.12.0.dev20170828055500->coala_bears~=0.12.0.dev20170722110839->-r requirements.txt (line 3))
Collecting cffi>=1.0.0 (from brotlipy>=0.5.1->HTTPolice~=0.5.2->coala_bears~=0.12.0.dev20170722110839->-r requirements.txt (line 3))
  Using cached https://files.pythonhosted.org/packages/6d/c0/47db8f624f3e4e2f3f27be03a93379d1ba16a1450a7b1aacfa0366e2c0dd/cffi-1.11.5-cp36-cp36m-manylinux1_x86_64.whl
Collecting decorator (from traitlets>=4.1->nbformat~=4.1->coala_bears~=0.12.0.dev20170722110839->-r requirements.txt (line 3))
  Using cached https://files.pythonhosted.org/packages/bc/bb/a24838832ba35baf52f32ab1a49b906b5f82fb7c76b2f6a7e35e140bac30/decorator-4.3.0-py2.py3-none-any.whl
Requirement already satisfied: pbr!=2.1.0,>=2.0.0 in /home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages (from stevedore>=1.17.1->bandit~=1.2->coala_bears~=0.12.0.dev20170722110839->-r requirements.txt (line 3))
Collecting gitdb2>=2.0.0 (from GitPython>=1.0.1->bandit~=1.2->coala_bears~=0.12.0.dev20170722110839->-r requirements.txt (line 3))
  Using cached https://files.pythonhosted.org/packages/e0/95/c772c13b7c5740ec1a0924250e6defbf5dfdaee76a50d1c47f9c51f1cabb/gitdb2-2.0.3-py2.py3-none-any.whl
Collecting lazy-object-proxy (from astroid<2.0,>=1.6->pylint~=1.6->coala_bears~=0.12.0.dev20170722110839->-r requirements.txt (line 3))
  Using cached https://files.pythonhosted.org/packages/65/1f/2043ec33066e779905ed7e6580384425fdc7dc2ac64d6931060c75b0c5a3/lazy_object_proxy-1.3.1-cp36-cp36m-manylinux1_x86_64.whl
Collecting wrapt (from astroid<2.0,>=1.6->pylint~=1.6->coala_bears~=0.12.0.dev20170722110839->-r requirements.txt (line 3))
Collecting pycparser (from cffi>=1.0.0->brotlipy>=0.5.1->HTTPolice~=0.5.2->coala_bears~=0.12.0.dev20170722110839->-r requirements.txt (line 3))
Collecting smmap2>=2.0.0 (from gitdb2>=2.0.0->GitPython>=1.0.1->bandit~=1.2->coala_bears~=0.12.0.dev20170722110839->-r requirements.txt (line 3))
  Using cached https://files.pythonhosted.org/packages/e3/59/4e22f692e65f5f9271252a8e63f04ce4ad561d4e06192478ee48dfac9611/smmap2-2.0.3-py2.py3-none-any.whl
Installing collected packages: lxml, cpplint, Pygments, libclang-py3, appdirs, colorama, termcolor, pyprint, pyparsing, packaging, coala-utils, sarge, dependency-management, testfixtures, colorlog, unidiff, chardet, idna, certifi, urllib3, requests, coala, cmakelint, isort, docutils, pyroma, mypy-lang, singledispatch, dominate, defusedxml, pycparser, cffi, brotlipy, bitstring, HTTPolice, docutils-ast-writer, click, future, proselint, nltk, vulture, ipython-genutils, decorator, traitlets, jsonschema, jupyter-core, nbformat, docopt, template-remover, html-linter, pyflakes, snowballstemmer, pydocstyle, guess-language-spirit, pyyaml, yamllint, yapf, stevedore, smmap2, gitdb2, GitPython, bandit, mando, radon, polib, dennis, aenum, munkres3, eradicate, cppclean, restructuredtext-lint, autoflake, scspell3k, rstcheck, pycodestyle, apertium-lint, autopep8, lazy-object-proxy, wrapt, astroid, mccabe, pylint, safety, memento-client, ansicolor, vim-vint, coala-bears, gemfileparser, pyjsparser, coverage, codecov, pytest-cov, pytest-env, pytest-timeout, pytest-forked, apipkg, execnet, pytest-xdist
Successfully installed GitPython-2.1.10 HTTPolice-0.5.2 Pygments-2.2.0 aenum-2.0.10 ansicolor-0.2.6 apertium-lint-0.29 apipkg-1.4 appdirs-1.4.3 astroid-1.6.4 autoflake-0.7 autopep8-1.3.5 bandit-1.4.0 bitstring-3.1.5 brotlipy-0.7.0 certifi-2018.4.16 cffi-1.11.5 chardet-3.0.4 click-6.6 cmakelint-1.3.4.1 coala-0.12.0.dev20180101025653 coala-bears-0.12.0.dev20171110210444 coala-utils-0.6.7 codecov-2.0.15 colorama-0.3.9 colorlog-2.10.0 coverage-4.3.4 cppclean-0.12 cpplint-1.3.0 decorator-4.3.0 defusedxml-0.5.0 dennis-0.9 dependency-management-0.4.0 docopt-0.6.2 docutils-0.14 docutils-ast-writer-0.1.2 dominate-2.3.1 eradicate-0.1.6 execnet-1.5.0 future-0.16.0 gemfileparser-0.6.2 gitdb2-2.0.3 guess-language-spirit-0.5.3 html-linter-0.3.0 idna-2.6 ipython-genutils-0.2.0 isort-4.3.4 jsonschema-2.6.0 jupyter-core-4.4.0 lazy-object-proxy-1.3.1 libclang-py3-3.4.0 lxml-3.6.0 mando-0.3.3 mccabe-0.6.1 memento-client-0.6.1 munkres3-1.0.5.5 mypy-lang-0.4.6 nbformat-4.4.0 nltk-3.3 packaging-16.8 polib-1.1.0 proselint-0.7.0 pycodestyle-2.4.0 pycparser-2.18 pydocstyle-2.1.1 pyflakes-1.5.0 pyjsparser-2.4.5 pylint-1.9.1 pyparsing-2.2.0 pyprint-0.2.6 pyroma-2.2 pytest-cov-2.5.1 pytest-env-0.6.2 pytest-forked-0.2 pytest-timeout-1.2.1 pytest-xdist-1.22.2 pyyaml-3.12 radon-1.4.0 requests-2.18.4 restructuredtext-lint-1.0.1 rstcheck-3.3 safety-0.5.1 sarge-0.1.4 scspell3k-2.1 singledispatch-3.4.0.3 smmap2-2.0.3 snowballstemmer-1.2.1 stevedore-1.28.0 template-remover-0.1.9 termcolor-1.1.0 testfixtures-4.14.3 traitlets-4.3.2 unidiff-0.5.5 urllib3-1.22 vim-vint-0.3.18 vulture-0.25 wrapt-1.10.11 yamllint-1.6.1 yapf-0.16.3

$ pip install -r requirements.txt
Requirement already satisfied: lxml==3.6.0 in /home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages (from -r requirements.txt (line 2))
Requirement already satisfied: coala_bears~=0.12.0.dev20170722110839 in /home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages (from -r requirements.txt (line 3))
Requirement already satisfied: coala_utils~=0.6.6 in /home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages (from -r requirements.txt (line 4))
Requirement already satisfied: gemfileparser~=0.6.2 in /home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages (from -r requirements.txt (line 5))
Requirement already satisfied: pyjsparser~=2.4.5 in /home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages (from -r requirements.txt (line 6))
Requirement already satisfied: cppclean~=0.12.0 in /home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages (from coala_bears~=0.12.0.dev20170722110839->-r requirements.txt (line 3))
Requirement already satisfied: coala>=0.12.0.dev20170828055500 in /home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages (from coala_bears~=0.12.0.dev20170722110839->-r requirements.txt (line 3))
Requirement already satisfied: nltk~=3.2 in /home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages (from coala_bears~=0.12.0.dev20170722110839->-r requirements.txt (line 3))
Requirement already satisfied: yapf~=0.16.0 in /home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages (from coala_bears~=0.12.0.dev20170722110839->-r requirements.txt (line 3))
Requirement already satisfied: yamllint~=1.6.1 in /home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages (from coala_bears~=0.12.0.dev20170722110839->-r requirements.txt (line 3))
Requirement already satisfied: pydocstyle~=2.0 in /home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages (from coala_bears~=0.12.0.dev20170722110839->-r requirements.txt (line 3))
Requirement already satisfied: apertium-lint~=0.29 in /home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages (from coala_bears~=0.12.0.dev20170722110839->-r requirements.txt (line 3))
Requirement already satisfied: cmakelint~=1.3 in /home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages (from coala_bears~=0.12.0.dev20170722110839->-r requirements.txt (line 3))
Requirement already satisfied: memento-client~=0.6.1 in /home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages (from coala_bears~=0.12.0.dev20170722110839->-r requirements.txt (line 3))
Requirement already satisfied: pyroma~=2.2.0 in /home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages (from coala_bears~=0.12.0.dev20170722110839->-r requirements.txt (line 3))
Requirement already satisfied: safety~=0.5.1 in /home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages (from coala_bears~=0.12.0.dev20170722110839->-r requirements.txt (line 3))
Requirement already satisfied: aenum~=2.0.8 in /home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages (from coala_bears~=0.12.0.dev20170722110839->-r requirements.txt (line 3))
Requirement already satisfied: docutils-ast-writer~=0.1.2 in /home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages (from coala_bears~=0.12.0.dev20170722110839->-r requirements.txt (line 3))
Requirement already satisfied: proselint~=0.7.0 in /home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages (from coala_bears~=0.12.0.dev20170722110839->-r requirements.txt (line 3))
Requirement already satisfied: rstcheck~=3.1 in /home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages (from coala_bears~=0.12.0.dev20170722110839->-r requirements.txt (line 3))
Requirement already satisfied: bandit~=1.2 in /home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages (from coala_bears~=0.12.0.dev20170722110839->-r requirements.txt (line 3))
Requirement already satisfied: radon==1.4.0 in /home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages (from coala_bears~=0.12.0.dev20170722110839->-r requirements.txt (line 3))
Requirement already satisfied: vim-vint~=0.3.12 in /home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages (from coala_bears~=0.12.0.dev20170722110839->-r requirements.txt (line 3))
Requirement already satisfied: eradicate~=0.1.6 in /home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages (from coala_bears~=0.12.0.dev20170722110839->-r requirements.txt (line 3))
Requirement already satisfied: nbformat~=4.1 in /home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages (from coala_bears~=0.12.0.dev20170722110839->-r requirements.txt (line 3))
Requirement already satisfied: pyyaml~=3.12 in /home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages (from coala_bears~=0.12.0.dev20170722110839->-r requirements.txt (line 3))
Requirement already satisfied: dennis~=0.8 in /home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages (from coala_bears~=0.12.0.dev20170722110839->-r requirements.txt (line 3))
Requirement already satisfied: munkres3~=1.0 in /home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages (from coala_bears~=0.12.0.dev20170722110839->-r requirements.txt (line 3))
Requirement already satisfied: scspell3k~=2.0 in /home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages (from coala_bears~=0.12.0.dev20170722110839->-r requirements.txt (line 3))
Requirement already satisfied: cpplint~=1.3 in /home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages (from coala_bears~=0.12.0.dev20170722110839->-r requirements.txt (line 3))
Requirement already satisfied: restructuredtext-lint~=1.0.0 in /home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages (from coala_bears~=0.12.0.dev20170722110839->-r requirements.txt (line 3))
Requirement already satisfied: HTTPolice~=0.5.2 in /home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages (from coala_bears~=0.12.0.dev20170722110839->-r requirements.txt (line 3))
Requirement already satisfied: guess-language-spirit~=0.5.2 in /home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages (from coala_bears~=0.12.0.dev20170722110839->-r requirements.txt (line 3))
Requirement already satisfied: pycodestyle~=2.2 in /home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages (from coala_bears~=0.12.0.dev20170722110839->-r requirements.txt (line 3))
Requirement already satisfied: mypy-lang~=0.4.6 in /home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages (from coala_bears~=0.12.0.dev20170722110839->-r requirements.txt (line 3))
Requirement already satisfied: html-linter~=0.3.0 in /home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages (from coala_bears~=0.12.0.dev20170722110839->-r requirements.txt (line 3))
Requirement already satisfied: vulture~=0.25.0 in /home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages (from coala_bears~=0.12.0.dev20170722110839->-r requirements.txt (line 3))
Requirement already satisfied: autoflake~=0.7 in /home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages (from coala_bears~=0.12.0.dev20170722110839->-r requirements.txt (line 3))
Requirement already satisfied: autopep8~=1.2 in /home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages (from coala_bears~=0.12.0.dev20170722110839->-r requirements.txt (line 3))
Requirement already satisfied: pylint~=1.6 in /home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages (from coala_bears~=0.12.0.dev20170722110839->-r requirements.txt (line 3))
Requirement already satisfied: isort~=4.2 in /home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages (from coala_bears~=0.12.0.dev20170722110839->-r requirements.txt (line 3))
Requirement already satisfied: click==6.6 in /home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages (from coala_bears~=0.12.0.dev20170722110839->-r requirements.txt (line 3))
Requirement already satisfied: pyflakes~=1.5.0 in /home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages (from coala_bears~=0.12.0.dev20170722110839->-r requirements.txt (line 3))
Requirement already satisfied: appdirs==1.4.* in /home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages (from coala_utils~=0.6.6->-r requirements.txt (line 4))
Requirement already satisfied: pyprint==0.2.* in /home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages (from coala_utils~=0.6.6->-r requirements.txt (line 4))
Requirement already satisfied: nose in /home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages (from gemfileparser~=0.6.2->-r requirements.txt (line 5))
Requirement already satisfied: unidiff~=0.5.2 in /home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages (from coala>=0.12.0.dev20170828055500->coala_bears~=0.12.0.dev20170722110839->-r requirements.txt (line 3))
Requirement already satisfied: testfixtures~=4.14.3 in /home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages (from coala>=0.12.0.dev20170828055500->coala_bears~=0.12.0.dev20170722110839->-r requirements.txt (line 3))
Requirement already satisfied: libclang-py3~=3.4.0 in /home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages (from coala>=0.12.0.dev20170828055500->coala_bears~=0.12.0.dev20170722110839->-r requirements.txt (line 3))
Requirement already satisfied: colorlog~=2.7 in /home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages (from coala>=0.12.0.dev20170828055500->coala_bears~=0.12.0.dev20170722110839->-r requirements.txt (line 3))
Requirement already satisfied: requests~=2.12 in /home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages (from coala>=0.12.0.dev20170828055500->coala_bears~=0.12.0.dev20170722110839->-r requirements.txt (line 3))
Requirement already satisfied: setuptools>=19.0 in /home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages (from coala>=0.12.0.dev20170828055500->coala_bears~=0.12.0.dev20170722110839->-r requirements.txt (line 3))
Requirement already satisfied: dependency-management~=0.4.0 in /home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages (from coala>=0.12.0.dev20170828055500->coala_bears~=0.12.0.dev20170722110839->-r requirements.txt (line 3))
Requirement already satisfied: Pygments~=2.1 in /home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages (from coala>=0.12.0.dev20170828055500->coala_bears~=0.12.0.dev20170722110839->-r requirements.txt (line 3))
Requirement already satisfied: packaging~=16.8 in /home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages (from coala>=0.12.0.dev20170828055500->coala_bears~=0.12.0.dev20170722110839->-r requirements.txt (line 3))
Requirement already satisfied: six in /home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages (from nltk~=3.2->coala_bears~=0.12.0.dev20170722110839->-r requirements.txt (line 3))
Requirement already satisfied: snowballstemmer in /home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages (from pydocstyle~=2.0->coala_bears~=0.12.0.dev20170722110839->-r requirements.txt (line 3))
Requirement already satisfied: docutils in /home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages (from pyroma~=2.2.0->coala_bears~=0.12.0.dev20170722110839->-r requirements.txt (line 3))
Requirement already satisfied: future in /home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages (from proselint~=0.7.0->coala_bears~=0.12.0.dev20170722110839->-r requirements.txt (line 3))
Requirement already satisfied: stevedore>=1.17.1 in /home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages (from bandit~=1.2->coala_bears~=0.12.0.dev20170722110839->-r requirements.txt (line 3))
Requirement already satisfied: GitPython>=1.0.1 in /home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages (from bandit~=1.2->coala_bears~=0.12.0.dev20170722110839->-r requirements.txt (line 3))
Requirement already satisfied: colorama<0.4,>=0.3 in /home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages (from radon==1.4.0->coala_bears~=0.12.0.dev20170722110839->-r requirements.txt (line 3))
Requirement already satisfied: mando<0.4,>=0.3 in /home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages (from radon==1.4.0->coala_bears~=0.12.0.dev20170722110839->-r requirements.txt (line 3))
Requirement already satisfied: ansicolor~=0.2.4 in /home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages (from vim-vint~=0.3.12->coala_bears~=0.12.0.dev20170722110839->-r requirements.txt (line 3))
Requirement already satisfied: chardet>=2.3.0 in /home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages (from vim-vint~=0.3.12->coala_bears~=0.12.0.dev20170722110839->-r requirements.txt (line 3))
Requirement already satisfied: ipython-genutils in /home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages (from nbformat~=4.1->coala_bears~=0.12.0.dev20170722110839->-r requirements.txt (line 3))
Requirement already satisfied: jsonschema!=2.5.0,>=2.4 in /home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages (from nbformat~=4.1->coala_bears~=0.12.0.dev20170722110839->-r requirements.txt (line 3))
Requirement already satisfied: jupyter-core in /home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages (from nbformat~=4.1->coala_bears~=0.12.0.dev20170722110839->-r requirements.txt (line 3))
Requirement already satisfied: traitlets>=4.1 in /home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages (from nbformat~=4.1->coala_bears~=0.12.0.dev20170722110839->-r requirements.txt (line 3))
Requirement already satisfied: polib>=1.0.8 in /home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages (from dennis~=0.8->coala_bears~=0.12.0.dev20170722110839->-r requirements.txt (line 3))
Requirement already satisfied: brotlipy>=0.5.1 in /home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages (from HTTPolice~=0.5.2->coala_bears~=0.12.0.dev20170722110839->-r requirements.txt (line 3))
Requirement already satisfied: dominate>=2.2.0 in /home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages (from HTTPolice~=0.5.2->coala_bears~=0.12.0.dev20170722110839->-r requirements.txt (line 3))
Requirement already satisfied: singledispatch>=3.4.0.3 in /home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages (from HTTPolice~=0.5.2->coala_bears~=0.12.0.dev20170722110839->-r requirements.txt (line 3))
Requirement already satisfied: bitstring>=3.1.4 in /home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages (from HTTPolice~=0.5.2->coala_bears~=0.12.0.dev20170722110839->-r requirements.txt (line 3))
Requirement already satisfied: defusedxml>=0.5.0 in /home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages (from HTTPolice~=0.5.2->coala_bears~=0.12.0.dev20170722110839->-r requirements.txt (line 3))
Requirement already satisfied: docopt>=0.6.1 in /home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages (from html-linter~=0.3.0->coala_bears~=0.12.0.dev20170722110839->-r requirements.txt (line 3))
Requirement already satisfied: template-remover in /home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages (from html-linter~=0.3.0->coala_bears~=0.12.0.dev20170722110839->-r requirements.txt (line 3))
Requirement already satisfied: astroid<2.0,>=1.6 in /home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages (from pylint~=1.6->coala_bears~=0.12.0.dev20170722110839->-r requirements.txt (line 3))
Requirement already satisfied: mccabe in /home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages (from pylint~=1.6->coala_bears~=0.12.0.dev20170722110839->-r requirements.txt (line 3))
Requirement already satisfied: termcolor~=1.1.0 in /home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages (from pyprint==0.2.*->coala_utils~=0.6.6->-r requirements.txt (line 4))
Requirement already satisfied: certifi>=2017.4.17 in /home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages (from requests~=2.12->coala>=0.12.0.dev20170828055500->coala_bears~=0.12.0.dev20170722110839->-r requirements.txt (line 3))
Requirement already satisfied: urllib3<1.23,>=1.21.1 in /home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages (from requests~=2.12->coala>=0.12.0.dev20170828055500->coala_bears~=0.12.0.dev20170722110839->-r requirements.txt (line 3))
Requirement already satisfied: idna<2.7,>=2.5 in /home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages (from requests~=2.12->coala>=0.12.0.dev20170828055500->coala_bears~=0.12.0.dev20170722110839->-r requirements.txt (line 3))
Requirement already satisfied: sarge~=0.1.4 in /home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages (from dependency-management~=0.4.0->coala>=0.12.0.dev20170828055500->coala_bears~=0.12.0.dev20170722110839->-r requirements.txt (line 3))
Requirement already satisfied: pyparsing in /home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages (from packaging~=16.8->coala>=0.12.0.dev20170828055500->coala_bears~=0.12.0.dev20170722110839->-r requirements.txt (line 3))
Requirement already satisfied: pbr!=2.1.0,>=2.0.0 in /home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages (from stevedore>=1.17.1->bandit~=1.2->coala_bears~=0.12.0.dev20170722110839->-r requirements.txt (line 3))
Requirement already satisfied: gitdb2>=2.0.0 in /home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages (from GitPython>=1.0.1->bandit~=1.2->coala_bears~=0.12.0.dev20170722110839->-r requirements.txt (line 3))
Requirement already satisfied: decorator in /home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages (from traitlets>=4.1->nbformat~=4.1->coala_bears~=0.12.0.dev20170722110839->-r requirements.txt (line 3))
Requirement already satisfied: cffi>=1.0.0 in /home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages (from brotlipy>=0.5.1->HTTPolice~=0.5.2->coala_bears~=0.12.0.dev20170722110839->-r requirements.txt (line 3))
Requirement already satisfied: wrapt in /home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages (from astroid<2.0,>=1.6->pylint~=1.6->coala_bears~=0.12.0.dev20170722110839->-r requirements.txt (line 3))
Requirement already satisfied: lazy-object-proxy in /home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages (from astroid<2.0,>=1.6->pylint~=1.6->coala_bears~=0.12.0.dev20170722110839->-r requirements.txt (line 3))
Requirement already satisfied: smmap2>=2.0.0 in /home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages (from gitdb2>=2.0.0->GitPython>=1.0.1->bandit~=1.2->coala_bears~=0.12.0.dev20170722110839->-r requirements.txt (line 3))
Requirement already satisfied: pycparser in /home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages (from cffi>=1.0.0->brotlipy>=0.5.1->HTTPolice~=0.5.2->coala_bears~=0.12.0.dev20170722110839->-r requirements.txt (line 3))

$ pytest
============================= test session starts ==============================
platform linux -- Python 3.6.3, pytest-3.3.0, py-1.5.2, pluggy-0.6.0
rootdir: /home/travis/build/coala/coala-quickstart, inifile: setup.cfg
plugins: xdist-1.22.2, timeout-1.2.1, forked-0.2, env-0.6.2, cov-2.5.1
timeout: 35.0s method: signal
collected 57 items                                                             

coala_quickstart/generation/Project.py .                                 [  1%]
coala_quickstart/info_extraction/Utilities.py .                          [  3%]
coala_quickstart/interaction/Logo.py .                                   [  5%]
tests/generation/Bears.py F..........F                                   [ 26%]
tests/generation/FileGlobs.py ...                                        [ 31%]
tests/generation/InfoCollectorTest.py .                                  [ 33%]
tests/generation/Project.py ...                                          [ 38%]
tests/generation/SettingsFillingTest.py ..........                       [ 56%]
tests/generation/SettingsTest.py ...                                     [ 61%]
tests/info_extraction/InfoExtractorTest.py ........                      [ 75%]
tests/info_extraction/InfoScopeTest.py ...                               [ 80%]
tests/info_extraction/InfoTest.py ...                                    [ 85%]
tests/info_extractors/EditorconfigInfoExtractorTest.py .                 [ 87%]
tests/info_extractors/GemfileInfoExtractorTest.py .                      [ 89%]
tests/info_extractors/GruntfileInfoExtractorTest.py .                    [ 91%]
tests/info_extractors/PackageJSONInfoExtractorTest.py ..                 [ 94%]
tests/info_extractors/UtilitiesTest.py .                                 [ 96%]
tests/interaction/Logo.py ..                                             [100%]
INTERNALERROR> Traceback (most recent call last):
INTERNALERROR>   File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/_pytest/main.py", line 103, in wrap_session
INTERNALERROR>     session.exitstatus = doit(config, session) or 0
INTERNALERROR>   File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/_pytest/main.py", line 141, in _main
INTERNALERROR>     config.hook.pytest_runtestloop(session=session)
INTERNALERROR>   File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/pluggy/__init__.py", line 617, in __call__
INTERNALERROR>     return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs)
INTERNALERROR>   File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/pluggy/__init__.py", line 222, in _hookexec
INTERNALERROR>     return self._inner_hookexec(hook, methods, kwargs)
INTERNALERROR>   File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/pluggy/__init__.py", line 216, in <lambda>
INTERNALERROR>     firstresult=hook.spec_opts.get('firstresult'),
INTERNALERROR>   File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/pluggy/callers.py", line 196, in _multicall
INTERNALERROR>     gen.send(outcome)
INTERNALERROR>   File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/pytest_cov/plugin.py", line 235, in pytest_runtestloop
INTERNALERROR>     self.cov_controller.finish()
INTERNALERROR>   File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/pytest_cov/engine.py", line 155, in finish
INTERNALERROR>     self.cov.combine()
INTERNALERROR>   File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/coverage/control.py", line 778, in combine
INTERNALERROR>     self.data, aliases=aliases, data_paths=data_paths, strict=strict,
INTERNALERROR>   File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/coverage/data.py", line 728, in combine_parallel_data
INTERNALERROR>     data.update(new_data, aliases=aliases)
INTERNALERROR>   File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/coverage/data.py", line 481, in update
INTERNALERROR>     raise CoverageException("Can't combine line data with arc data")
INTERNALERROR> coverage.misc.CoverageException: Can't combine line data with arc data

===================== 2 failed, 55 passed in 51.85 seconds =====================

@@ -6,7 +6,7 @@

from coala_quickstart.Constants import (
IMPORTANT_BEAR_LIST, ALL_CAPABILITIES, DEFAULT_CAPABILTIES)
from coala_quickstart.Strings import BEAR_HELP
from coala_quickstart.Strings import (PRINT_BEARS, BEAR_HELP)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no need of paranthesis here

"""
Prints the relevant bears in sections separated by language.
Prints both the usable and unusable, relevant bears
in sections separated by language.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"seperated by language?"
needs a language change over here 😉

PRINT_BEARS = {'unusable':
{'msg': """
\nBased on the configuration options the following
bears have been identified to be unusable:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

an extra message on how to make these bears usable too would be good over here

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

indicating that these bears can be made usable if coala-quickstart is not run in non-interactive mode (not exactly this language)

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, I have to change this, it sound better with the indications. Also, do you feel that using PRINT_BEARS as in the PR is an ok option? I feel that it somehow looks ugly (hacky), but on the other hand I feel that the other options either add duplicate code, or are less flexible?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think it looks ugly or hacky, for the same reason

on the other hand I feel that the other options either add duplicate code


PRINT_BEARS = {'unusable':
{'msg': """
\nBased on the configuration options the following
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove the \n in the front of the messages as it is creating additional blank lines

@ishanSrt
Copy link
Contributor

@tallicamike this is a good patch although can't make out why you need an OrderedDict over here, could have done without that. The CI has been fixed which might have been failing earlier. Please add/modfy the existing test cases.

@@ -2,6 +2,7 @@
import logging
import os
import sys
from collections import OrderedDict
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't see the use of ordered dict over here

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I used a OrderedDict there because I wanted to make sure that each time coala-quickstart is run, fristly the unused bears are printed and then the used bears. (I wanted a deterministic execution, and, for the user, if he doesn't want to check the full log he'll only get a glimpse at the ones that were chosen - I feel this is the most common case). Sounds ok? Or should I change it?

@ishanSrt
Copy link
Contributor

manual rebase is needed

for label_bears in nonempty_label_bears:
printer.print(PRINT_BEARS[label_bears]['msg'])
for language in relevant_bears[label_bears]:
printer.print(" [" + language + "]",

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You do not use the preferred quotation marks.

Origin: QuotesBear, Section: all.quotes.

The issue can be fixed by applying the following patch:

--- a/tmp/tmpswjp7wec/coala_quickstart/generation/Bears.py
+++ b/tmp/tmpswjp7wec/coala_quickstart/generation/Bears.py
@@ -236,7 +236,7 @@
     for label_bears in nonempty_label_bears:
         printer.print(PRINT_BEARS[label_bears]['msg'])
         for language in relevant_bears[label_bears]:
-            printer.print("    [" + language + "]",
+            printer.print('    [' + language + "]",
                           color=PRINT_BEARS[label_bears]["colors"][0])
             for bear in relevant_bears[label_bears][language]:
                 printer.print("    " + bear.name,

for label_bears in nonempty_label_bears:
printer.print(PRINT_BEARS[label_bears]['msg'])
for language in relevant_bears[label_bears]:
printer.print(" [" + language + "]",

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You do not use the preferred quotation marks.

Origin: QuotesBear, Section: all.quotes.

The issue can be fixed by applying the following patch:

--- a/tmp/tmpswjp7wec/coala_quickstart/generation/Bears.py
+++ b/tmp/tmpswjp7wec/coala_quickstart/generation/Bears.py
@@ -236,7 +236,7 @@
     for label_bears in nonempty_label_bears:
         printer.print(PRINT_BEARS[label_bears]['msg'])
         for language in relevant_bears[label_bears]:
-            printer.print("    [" + language + "]",
+            printer.print("    [" + language + ']',
                           color=PRINT_BEARS[label_bears]["colors"][0])
             for bear in relevant_bears[label_bears][language]:
                 printer.print("    " + bear.name,

printer.print(PRINT_BEARS[label_bears]['msg'])
for language in relevant_bears[label_bears]:
printer.print(" [" + language + "]",
color=PRINT_BEARS[label_bears]["colors"][0])

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You do not use the preferred quotation marks.

Origin: QuotesBear, Section: all.quotes.

The issue can be fixed by applying the following patch:

--- a/tmp/tmpswjp7wec/coala_quickstart/generation/Bears.py
+++ b/tmp/tmpswjp7wec/coala_quickstart/generation/Bears.py
@@ -237,7 +237,7 @@
         printer.print(PRINT_BEARS[label_bears]['msg'])
         for language in relevant_bears[label_bears]:
             printer.print("    [" + language + "]",
-                          color=PRINT_BEARS[label_bears]["colors"][0])
+                          color=PRINT_BEARS[label_bears]['colors'][0])
             for bear in relevant_bears[label_bears][language]:
                 printer.print("    " + bear.name,
                               color=PRINT_BEARS[label_bears]["colors"][1])

printer.print(" [" + language + "]",
color=PRINT_BEARS[label_bears]["colors"][0])
for bear in relevant_bears[label_bears][language]:
printer.print(" " + bear.name,

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You do not use the preferred quotation marks.

Origin: QuotesBear, Section: all.quotes.

The issue can be fixed by applying the following patch:

--- a/tmp/tmpswjp7wec/coala_quickstart/generation/Bears.py
+++ b/tmp/tmpswjp7wec/coala_quickstart/generation/Bears.py
@@ -239,7 +239,7 @@
             printer.print("    [" + language + "]",
                           color=PRINT_BEARS[label_bears]["colors"][0])
             for bear in relevant_bears[label_bears][language]:
-                printer.print("    " + bear.name,
+                printer.print('    ' + bear.name,
                               color=PRINT_BEARS[label_bears]["colors"][1])
             printer.print("")
 

color=PRINT_BEARS[label_bears]["colors"][0])
for bear in relevant_bears[label_bears][language]:
printer.print(" " + bear.name,
color=PRINT_BEARS[label_bears]["colors"][1])

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You do not use the preferred quotation marks.

Origin: QuotesBear, Section: all.quotes.

The issue can be fixed by applying the following patch:

--- a/tmp/tmpswjp7wec/coala_quickstart/generation/Bears.py
+++ b/tmp/tmpswjp7wec/coala_quickstart/generation/Bears.py
@@ -240,7 +240,7 @@
                           color=PRINT_BEARS[label_bears]["colors"][0])
             for bear in relevant_bears[label_bears][language]:
                 printer.print("    " + bear.name,
-                              color=PRINT_BEARS[label_bears]["colors"][1])
+                              color=PRINT_BEARS[label_bears]['colors'][1])
             printer.print("")
 
 

for bear in relevant_bears[label_bears][language]:
printer.print(" " + bear.name,
color=PRINT_BEARS[label_bears]["colors"][1])
printer.print("")

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You do not use the preferred quotation marks.

Origin: QuotesBear, Section: all.quotes.

The issue can be fixed by applying the following patch:

--- a/tmp/tmpswjp7wec/coala_quickstart/generation/Bears.py
+++ b/tmp/tmpswjp7wec/coala_quickstart/generation/Bears.py
@@ -241,7 +241,7 @@
             for bear in relevant_bears[label_bears][language]:
                 printer.print("    " + bear.name,
                               color=PRINT_BEARS[label_bears]["colors"][1])
-            printer.print("")
+            printer.print('')
 
 
 def generate_requirements_map(bears):

[('Python', 70), ('Unknown', 30)], self.printer,
self.arg_parser, {}))
print_relevant_bears(self.printer, OrderedDict([('unusable', {}),
('usable', filter_relevant_bears([('Python', 70), ('Unknown', 30)],

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The code does not comply to PEP8.

Origin: PEP8Bear, Section: all.autopep8.

The issue can be fixed by applying the following patch:

--- a/tmp/tmpswjp7wec/tests/generation/Bears.py
+++ b/tmp/tmpswjp7wec/tests/generation/Bears.py
@@ -288,8 +288,8 @@
     def test_print_relevant_bears(self):
         with retrieve_stdout() as custom_stdout:
             print_relevant_bears(self.printer, OrderedDict([('unusable', {}),
-                ('usable', filter_relevant_bears([('Python', 70), ('Unknown', 30)],
-                    self.printer, self.arg_parser, {}))]))
+                                                            ('usable', filter_relevant_bears([('Python', 70), ('Unknown', 30)],
+                                                                                             self.printer, self.arg_parser, {}))]))
             self.assertIn("PycodestyleBear", custom_stdout.getvalue())
             # Should print only the usable bears
             self.assertNotIn("unusable",

self.arg_parser, {}))
print_relevant_bears(self.printer, OrderedDict([('unusable', {}),
('usable', filter_relevant_bears([('Python', 70), ('Unknown', 30)],
self.printer, self.arg_parser, {}))]))

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

E128 continuation line under-indented for visual indent

Origin: PycodestyleBear (E128), Section: all.autopep8.

def test_print_relevant_bears_no_bears(self):
with retrieve_stdout() as custom_stdout:
print_relevant_bears(self.printer, OrderedDict([('unusable', {}),
('usable', {})]))

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

E128 continuation line under-indented for visual indent

Origin: PycodestyleBear (E128), Section: all.autopep8.

self.assertNotIn("usable",
# Should print only the usable bears
self.assertIn("usable",
custom_stdout.getvalue())

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

E127 continuation line over-indented for visual indent

Origin: PycodestyleBear (E127), Section: all.autopep8.

[('Python', 70), ('Unknown', 30)], self.printer,
self.arg_parser, {}))
print_relevant_bears(self.printer, OrderedDict([('unusable', {}),
('usable', filter_relevant_bears([('Python', 70), ('Unknown', 30)],

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Line is longer than allowed. (83 > 80)

Origin: LineLengthBear, Section: all.linelength.

@TravisBuddy
Copy link

Travis tests have failed

Hey @tallicamike,
Please read the following log in order to understand the failure reason.
It'll be awesome if you fix what's wrong and commit the changes.

3rd Build

coala --non-interactive
Executing section all...
Executing section all.python...
Executing section all.quotes...
[WARNING][13:49:41] No files matching '/home/travis/build/coala/coala-quickstart/tests/**.py' were found. If this rule is not required, you can remove it from section [all.quotes] in your .coafile to deactivate this warning.
**** QuotesBear [Section <empty> | Severity NORMAL] ****
!    ! You do not use the preferred quotation marks.
[----] /home/travis/build/coala/coala-quickstart/coala_quickstart/generation/Bears.py
[++++] /home/travis/build/coala/coala-quickstart/coala_quickstart/generation/Bears.py
[ 239]             printer.print("    [" + language + "]",
[ 239]             printer.print('    [' + language + "]",
[INFO][13:49:42] Applied 'ShowPatchAction' on 'coala_quickstart/generation/Bears.py' from 'QuotesBear'.
**** QuotesBear [Section <empty> | Severity NORMAL] ****
!    ! You do not use the preferred quotation marks.
[----] /home/travis/build/coala/coala-quickstart/coala_quickstart/generation/Bears.py
[++++] /home/travis/build/coala/coala-quickstart/coala_quickstart/generation/Bears.py
[ 239]             printer.print("    [" + language + "]",
[ 239]             printer.print("    [" + language + ']',
[INFO][13:49:42] Applied 'ShowPatchAction' on 'coala_quickstart/generation/Bears.py' from 'QuotesBear'.
**** QuotesBear [Section <empty> | Severity NORMAL] ****
!    ! You do not use the preferred quotation marks.
[----] /home/travis/build/coala/coala-quickstart/coala_quickstart/generation/Bears.py
[++++] /home/travis/build/coala/coala-quickstart/coala_quickstart/generation/Bears.py
[ 240]                           color=PRINT_BEARS[label_bears]["colors"][0])
[ 240]                           color=PRINT_BEARS[label_bears]['colors'][0])
[INFO][13:49:42] Applied 'ShowPatchAction' on 'coala_quickstart/generation/Bears.py' from 'QuotesBear'.
**** QuotesBear [Section <empty> | Severity NORMAL] ****
!    ! You do not use the preferred quotation marks.
[----] /home/travis/build/coala/coala-quickstart/coala_quickstart/generation/Bears.py
[++++] /home/travis/build/coala/coala-quickstart/coala_quickstart/generation/Bears.py
[ 242]                 printer.print("    " + bear.name,
[ 242]                 printer.print('    ' + bear.name,
[INFO][13:49:42] Applied 'ShowPatchAction' on 'coala_quickstart/generation/Bears.py' from 'QuotesBear'.
**** QuotesBear [Section <empty> | Severity NORMAL] ****
!    ! You do not use the preferred quotation marks.
[----] /home/travis/build/coala/coala-quickstart/coala_quickstart/generation/Bears.py
[++++] /home/travis/build/coala/coala-quickstart/coala_quickstart/generation/Bears.py
[ 243]                               color=PRINT_BEARS[label_bears]["colors"][1])
[ 243]                               color=PRINT_BEARS[label_bears]['colors'][1])
[INFO][13:49:42] Applied 'ShowPatchAction' on 'coala_quickstart/generation/Bears.py' from 'QuotesBear'.
**** QuotesBear [Section <empty> | Severity NORMAL] ****
!    ! You do not use the preferred quotation marks.
[----] /home/travis/build/coala/coala-quickstart/coala_quickstart/generation/Bears.py
[++++] /home/travis/build/coala/coala-quickstart/coala_quickstart/generation/Bears.py
[ 244]             printer.print("")
[ 244]             printer.print('')
[INFO][13:49:42] Applied 'ShowPatchAction' on 'coala_quickstart/generation/Bears.py' from 'QuotesBear'.
Executing section all.autopep8...
**** PEP8Bear [Section <empty> | Severity NORMAL] ****
!    ! The code does not comply to PEP8.
[----] /home/travis/build/coala/coala-quickstart/tests/generation/Bears.py
[++++] /home/travis/build/coala/coala-quickstart/tests/generation/Bears.py
[ 291]                 ('usable', filter_relevant_bears([('Python', 70), ('Unknown', 30)],
[ 292]                     self.printer, self.arg_parser, {}))]))
[ 291]                                                             ('usable', filter_relevant_bears([('Python', 70), ('Unknown', 30)],
[ 292]                                                                                              self.printer, self.arg_parser, {}))]))
[INFO][13:49:50] Applied 'ShowPatchAction' on 'tests/generation/Bears.py' from 'PEP8Bear'.
**** PEP8Bear [Section <empty> | Severity NORMAL] ****
!    ! The code does not comply to PEP8.
[----] /home/travis/build/coala/coala-quickstart/tests/generation/Bears.py
[++++] /home/travis/build/coala/coala-quickstart/tests/generation/Bears.py
[ 301]                 ('usable', {})]))
[ 301]                                                             ('usable', {})]))
[INFO][13:49:50] Applied 'ShowPatchAction' on 'tests/generation/Bears.py' from 'PEP8Bear'.
**** PEP8Bear [Section <empty> | Severity NORMAL] ****
!    ! The code does not comply to PEP8.
[----] /home/travis/build/coala/coala-quickstart/tests/generation/Bears.py
[++++] /home/travis/build/coala/coala-quickstart/tests/generation/Bears.py
[ 317]                              custom_stdout.getvalue())
[ 317]                           custom_stdout.getvalue())
[INFO][13:49:50] Applied 'ShowPatchAction' on 'tests/generation/Bears.py' from 'PEP8Bear'.
[WARNING][13:49:50] PycodestyleBear (E128): This result has no patch attached.
[WARNING][13:49:50] PycodestyleBear (E501): This result has no patch attached.
[WARNING][13:49:50] PycodestyleBear (E128): This result has no patch attached.
[WARNING][13:49:50] PycodestyleBear (E128): This result has no patch attached.
[WARNING][13:49:50] PycodestyleBear (E127): This result has no patch attached.

tests/generation/Bears.py
[ 291] ················('usable',·filter_relevant_bears([('Python',·70),·('Unknown',·30)],
**** PycodestyleBear (E128) [Section: all.autopep8 | Severity: NORMAL] ****
!    ! E128 continuation line under-indented for visual indent

tests/generation/Bears.py
[ 291] ················('usable',·filter_relevant_bears([('Python',·70),·('Unknown',·30)],
**** PycodestyleBear (E501) [Section: all.autopep8 | Severity: NORMAL] ****
!    ! E501 line too long (83 > 80 characters)

tests/generation/Bears.py
[ 292] ····················self.printer,·self.arg_parser,·{}))]))
**** PycodestyleBear (E128) [Section: all.autopep8 | Severity: NORMAL] ****
!    ! E128 continuation line under-indented for visual indent

tests/generation/Bears.py
[ 301] ················('usable',·{})]))
**** PycodestyleBear (E128) [Section: all.autopep8 | Severity: NORMAL] ****
!    ! E128 continuation line under-indented for visual indent

tests/generation/Bears.py
[ 317] ·····························custom_stdout.getvalue())
**** PycodestyleBear (E127) [Section: all.autopep8 | Severity: NORMAL] ****
!    ! E127 continuation line over-indented for visual indent
Executing section all.linelength...
[WARNING][13:49:50] LineLengthBear: This result has no patch attached.

tests/generation/Bears.py
[ 291] ················('usable',·filter_relevant_bears([('Python',·70),·('Unknown',·30)],
**** LineLengthBear [Section: all.linelength | Severity: NORMAL] ****
!    ! Line is longer than allowed. (83 > 80)
Executing section all.commit...
Executing section all.yml...
[WARNING][13:49:51] No files matching '/home/travis/build/coala/coala-quickstart/tests/**/*.yml' were found. If this rule is not required, you can remove it from section [all.yml] in your .coafile to deactivate this warning.
Executing section cli...

printer.print(BEAR_HELP)

# Don't print anything for empty bear sets
nonempty_label_bears = (
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we print something if there are no relevant bears?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i am sure that would never be the case 😉

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah, imo a simple print statement saying no relevant bears found should suffice (just in case there's a change of design in future which actually allows no relevant bears, we don't want user to be confused when he sees an empy screen with no message printed)

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok


PRINT_BEARS = {'unusable':
{'msg': """
Based on the configuration options the following bears have been identified
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

2 spaces after options

PRINT_BEARS = {'unusable':
{'msg': """
Based on the configuration options the following bears have been identified
as unusable ('-C' or '--ci' set non-interactive mode, making the bears that
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

set ?? misplaced word?

Based on the configuration options the following bears have been identified
as unusable ('-C' or '--ci' set non-interactive mode, making the bears that
need to be configured by the user unusable: check '--allow-incomplete-sections'
for more information):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

or don't run in non interactive mode

print_relevant_bears(self.printer, OrderedDict([('unusable', {}),
('usable', {})]))
self.assertNotIn("usable", custom_stdout.getvalue())
# Should print only the usable bears
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no output is being printed in this case right?
this comment seems misleading because of that.

PRINT_BEARS = {'unusable':
{'msg': """
Based on the configuration options the following bears have been identified
as unusable (options '-C' or '--ci' (non interactive mode) make the bears that
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

language trouble, parenthesis shouldn't be here starting before the options

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

imo, the sentence is too long too, needs to split.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

currently, there's nesting of braces, and the sentence inside the braces is long too.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How about this: "The following bears have been dropped because '-C'/'--ci' (non interactive mode) option has ben selected. Remove the option or check '--allow-incomplete-sections' option for more information on how to include them:" ?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sounds good.

Copy link
Contributor

@ishanSrt ishanSrt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM ping @satwikkansal

@jayvdb jayvdb requested a review from satwikkansal June 17, 2018 04:18
@@ -50,3 +50,18 @@

You can see all of them here: {}
""".format(BEAR_DOCS_URL)

PRINT_BEARS = {'unusable':
{'msg': """
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A slight indentation issue, can you move the opening brace to previous line

PRINT_BEARS = {'unusable': {

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

will do

PRINT_BEARS = {'unusable':
{'msg': """
Based on the configuration options the following bears have been identified
as unusable (options '-C' or '--ci' (non interactive mode) make the bears that
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

imo, the sentence is too long too, needs to split.

PRINT_BEARS = {'unusable':
{'msg': """
Based on the configuration options the following bears have been identified
as unusable (options '-C' or '--ci' (non interactive mode) make the bears that
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

currently, there's nesting of braces, and the sentence inside the braces is long too.

Based on the configuration options the following bears have been identified
as unusable (options '-C' or '--ci' (non interactive mode) make the bears that
need to be configured by the user unusable: don't run in non interactive mode
or check '--allow-incomplete-sections' for more information on how to include
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"or check '--allow-incomplete-sections' option for more information...

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add "option" to it, that is?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yep

or check '--allow-incomplete-sections' for more information on how to include
the unusable bears):
""",
'colors': ('green', 'red')},
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There seems like an indentation issue in the entire dict, can you please check that?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The linter isn't complaining, but indeed it is hard to read. Re-writing it nicely kind of beats me, what I would suggest would be to add variables for each 'msg' value of the dictionary so it should be more "readable". (or another option would be to create variables for the inner dictionaries - 'unusable' and 'usable')
I'm thinking of something like this:

PRINT_BEARS = {
                'unusable': {
                    'msg': PRINT_UNUSABLE,
                    'colors': ('green', 'red')
                 },

What are your thoughts on this?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, that's a nice idea.

print_relevant_bears(printer, relevant_bears)

# Drop unusable bears
relevant_bears = relevant_bears['usable']
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isn't the remove_unusable_bears method doing this?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I changed remove_unusable_bears to also add the unusable bears to the OrderdDict, but I'm using that only for printing purposes. Here the printing has ended, so I drop unusable bears from the dict.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I changed remove_unusable_bears to also add the unusable bears to the OrderdDict

doesn't that contradict with the function name? remove_unusable_bears is adding unusable bears to OrdereDict

print_relevant_bears(printer, relevant_bears)
# OrderedDict used for print_relevant_bears to first print unusable bears
relevant_bears = OrderedDict(
[('unusable', {}),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure if I full understand this, where are we populating the dictionary with key unusable 😅

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

see remove_unusable_bears in this PR

printer.print(BEAR_HELP)

# Don't print anything for empty bear sets
nonempty_label_bears = (
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah, imo a simple print statement saying no relevant bears found should suffice (just in case there's a change of design in future which actually allows no relevant bears, we don't want user to be confused when he sees an empy screen with no message printed)

@@ -200,38 +200,48 @@ def get_non_optional_settings_bears(bears):

def remove_unusable_bears(bears, unusable_bears):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think based on the new changes, a better name could be filter_unsuable_bears

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, you are right! I didn't thought about that! Makes more sense now! Thank you!

Remove duplicate printing of `relevant_bears` and instead change
`print_relevant_bears` to inform the user both of the usable and
unusable bears.

Closes coala#220
printer.print('')
printer.print(BEAR_HELP)

nonempty_label_bears = [
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nonempty -> non_empty


if not nonempty_label_bears:
printer.print('No relevant bears were found.')
else:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you can use return here if there are no bears to print

then the following can be dedented

PRINT_BEARS = {
'unusable': {
'msg': PRINT_UNUSABLE,
'colors': ('green', 'red')
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add trailing comma


print_relevant_bears(printer, relevant_bears)
# OrderedDict used for print_relevant_bears to first print unusable bears
relevant_bears = OrderedDict(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

labelled_bears = {'usable': selected_bears}
print_labels = ['usable']

@@ -103,18 +104,27 @@ def main():

extracted_information = collect_info(project_dir)

relevant_bears = filter_relevant_bears(
selected_bears = filter_relevant_bears(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

unnecessary .. see elsewhere

@@ -201,40 +201,52 @@ def get_non_optional_settings_bears(bears):
return non_optional_settings


def remove_unusable_bears(bears, unusable_bears):
def filter_unusable_bears(bears, unusable_bears):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This can stay as remove_unusable_bears , and return the removed bears grouped by language.

for bear in tuple(language_bears):
if bear in unusable_bears:
bears[language].remove(bear)
bears['usable'][language].remove(bear)
bears['unusable'][language] = bears['unusable'].get(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

return a new dict with the unusable bears grouped by language.



def print_relevant_bears(printer, relevant_bears, label='relevant'):
def print_relevant_bears(printer, relevant_bears):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

change this to:

def print_bears(printer, labelled_bears, labels=['usable']):

The order of the labels is then used to determine which groups to show.

print_relevant_bears(printer, relevant_bears, 'usable')
unusable_bears = get_non_optional_settings_bears(
relevant_bears['usable'])
filter_unusable_bears(relevant_bears, unusable_bears)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

labelled_bears['unusable'] = remove_unusable_bears(relevant_bears, unusable_bears)
print_labels = ['unusable', 'usable']

relevant_bears['usable'])
filter_unusable_bears(relevant_bears, unusable_bears)

print_relevant_bears(printer, relevant_bears)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

print_labelled_bears(print, labelled_bears, print_labels)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

None yet

6 participants