@linter
Lint
in the next release :+1:
@linter
:)
cib list <bear>
it should show the docstring from that bear after importing it :) ?
cib show PEP8Bear
would do that
cib show bearx
show_bear(package_object)
TypeError: show_bear() missing 4 required positional arguments: 'sections', 'show_description', 'show_params', and 'console_printer'
(venv) 192-168-0-102:cib adrianzatreanu$ python3 coala_package_manager/installation_tool.py show PEP8Bear
<class 'module'>
Traceback (most recent call last):
File "coala_package_manager/installation_tool.py", line 331, in <module>
sys.exit(main())
File "coala_package_manager/installation_tool.py", line 324, in main
show_bear(package_object, True, True, ColorPrinter)
File "/Users/adrianzatreanu/venv/lib/python3.5/site-packages/coalib/output/ConsoleInteraction.py", line 695, in show_bear
console_printer.print(bear.name, color="blue")
AttributeError: module 'coalaPEP8Bear.PEP8Bear' has no attribute 'name'
package_object = importlib.import_module(
'coala' + args['<bear>'][0] + '.' + args['<bear>'][0])
print(type(package_object))
show_bear(package_object, True, True, ColorPrinter)
package_object = importlib.import_module(
'coala' + package_name + '.' + package_name)
for requirement in getattr(package_object, package_name).REQUIREMENTS:
Traceback (most recent call last):
File "coala_package_manager/installation_tool.py", line 330, in <module>
sys.exit(main())
File "coala_package_manager/installation_tool.py", line 323, in main
show_bear(getattr(package_object, args['<bear>'][0]), True, True, ColorPrinter)
File "/Users/adrianzatreanu/venv/lib/python3.5/site-packages/coalib/output/ConsoleInteraction.py", line 695, in show_bear
console_printer.print(bear.name, color="blue")
File "/Users/adrianzatreanu/venv/lib/python3.5/site-packages/pyprint/Printer.py", line 43, in print
return self._print(output, **kwargs)
AttributeError: 'str' object has no attribute '_print'
ConsolePrinter
ConsolePrinter()
Traceback (most recent call last):
File "/Users/adrianzatreanu/venv/lib/python3.5/site-packages/pyprint/ColorPrinter.py", line 44, in _print
return self._print_colored(output, **kwargs)
File "/Users/adrianzatreanu/venv/lib/python3.5/site-packages/pyprint/ColorPrinter.py", line 56, in _print_colored
raise NotImplementedError
NotImplementedError
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "coala_package_manager/installation_tool.py", line 331, in <module>
sys.exit(main())
File "coala_package_manager/installation_tool.py", line 324, in main
show_bear(getattr(package_object, args['<bear>'][0]), True, True, ColorPrinter())
File "/Users/adrianzatreanu/venv/lib/python3.5/site-packages/coalib/output/ConsoleInteraction.py", line 695, in show_bear
console_printer.print(bear.name, color="blue")
File "/Users/adrianzatreanu/venv/lib/python3.5/site-packages/pyprint/Printer.py", line 43, in print
return self._print(output, **kwargs)
File "/Users/adrianzatreanu/venv/lib/python3.5/site-packages/pyprint/ColorPrinter.py", line 46, in _print
return self._print_uncolored(output, **kwargs)
File "/Users/adrianzatreanu/venv/lib/python3.5/site-packages/pyprint/ColorPrinter.py", line 65, in _print_uncolored
raise NotImplementedError
NotImplementedError
cib show <bear_name>
which gives you a lot of useful output about each bear, is now live and rocking for testing!
RLintBear is installing.. DONE!
Bears that failed installing:
RLintBear