{"id":26839,"library":"coala-bears","title":"coala","description":"Coala is a modular linting and fixing tool for all languages. Version 0.11.0 is the latest release (2017-10-30). The project is in maintenance mode with no recent updates. It uses a bear-based plugin system for language-specific analysis.","status":"maintenance","version":"0.11.0","language":"python","source_language":"en","source_url":"https://github.com/coala/coala","tags":["linting","static-analysis","code-quality","multi-language"],"install":[{"cmd":"pip install coala-bears","lang":"bash","label":"Install coala with all default bears"},{"cmd":"pip install coala","lang":"bash","label":"Install core coala only"}],"dependencies":[],"imports":[{"note":"Direct import of coalib does not expose the CLI entry point; use from coalib import main to run programmatically.","wrong":"import coalib","symbol":"main","correct":"from coalib import main"},{"note":"The base class is Bear, not CoalaBear; custom bears inherit from Bear.","wrong":"from coala import CoalaBear","symbol":"CoalaBear","correct":"from coalib.bears import Bear"}],"quickstart":{"code":"import os\nfrom coalib import main\n# Run coala programmatically (example)\n# This requires a .coafile configuration; if not present, it will exit with an error.\n# Instead, you can use the CLI: coala --help\nprint(\"Coala version: 0.11.0\")","lang":"python","description":"Basic programmatic usage of coala; typically invoked from command line."},"warnings":[{"fix":"Evaluate other linting tools for active development.","message":"Coala is in maintenance mode. Development has stalled since 2017. For new projects, consider alternatives like pre-commit or Ruff.","severity":"deprecated","affected_versions":">=0.11.0"},{"fix":"Upgrade Python environment to 3.4+.","message":"Coala dropped support for Python 2 in version 0.11.0. Python 3.4+ required.","severity":"breaking","affected_versions":"0.11.0"},{"fix":"Create a .coafile with sections for bears and files.","message":"Coala configuration is via .coafile in the project root. Without it, coala will exit with 'No files to process'.","severity":"gotcha","affected_versions":"all"},{"fix":"Add bears setting like 'bears = SpaceConsistencyBear' in .coafile.","message":"Common mistake: running coala without specifying bears leads to no checks. Explicitly enable bears in .coafile or CLI.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Install coala core: pip install coala","cause":"Coala not installed or installed only coala-bears without core.","error":"ImportError: No module named 'coalib'"},{"fix":"Add a bears line in .coafile, e.g., 'bears = SpaceConsistencyBear'.","cause":"No bears configured in .coafile or none matched.","error":"coalib.meta.CoalaProblem: There are no bears to run."},{"fix":"Set 'files = **.py' or similar glob in .coafile.","cause":"Files setting in .coafile is empty or no files match the pattern.","error":"coalib.output.ConsoleInteraction: No files to process."}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}