Registry / testing / coala-bears

coala-bears

JSON →
library0.11.0pypypiunverified

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.

pip install coala-bears
INSTALL
IMPORT
SIG · COALA-BEARS
C
coala-bears
testingpythonv0.11.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

main
from coalib import main
import coalib
Direct import of coalib does not expose the CLI entry point; use from coalib import main to run programmatically.
CoalaBear
from coalib.bears import Bear
from coala import CoalaBear
The base class is Bear, not CoalaBear; custom bears inherit from Bear.

Basic programmatic usage of coala; typically invoked from command line.

import os from coalib import main # Run coala programmatically (example) # This requires a .coafile configuration; if not present, it will exit with an error. # Instead, you can use the CLI: coala --help print("Coala version: 0.11.0")
Debug
Known issues
deprecatedCoala is in maintenance mode. Development has stalled since 2017. For new projects, consider alternatives like pre-commit or Ruff.
fix
Evaluate other linting tools for active development.
affects: >=0.11.0
breakingCoala dropped support for Python 2 in version 0.11.0. Python 3.4+ required.
fix
Upgrade Python environment to 3.4+.
affects: 0.11.0
gotchaCoala configuration is via .coafile in the project root. Without it, coala will exit with 'No files to process'.
fix
Create a .coafile with sections for bears and files.
affects: all
gotchaCommon mistake: running coala without specifying bears leads to no checks. Explicitly enable bears in .coafile or CLI.
fix
Add bears setting like 'bears = SpaceConsistencyBear' in .coafile.
affects: all
Upgrade
Version history
0.11.0latest on PyPI · released May 23, 2017
Audit
Dependencies

No dependency data recorded yet.

Agent activity
11 hits · last 30 days
node
8
Amazon
1
OpenAI (training)
1
Resources
coala-bears — pip install coala-bears · libregistry