Pylint Celery Plugin

0.3 · maintenance · verified Wed Apr 15

pylint-celery is a Pylint plugin designed to enhance Pylint's ability to recognize and understand common patterns and potential errors when analyzing code that uses the Celery distributed task queue library. It aims to reduce false positives and provide more accurate linting for Celery-specific constructs. The current version is 0.3, with the last PyPI release dating back to 2014, suggesting a low-cadence, maintenance-focused development cycle, though the GitHub repository under pylint-dev sees ongoing issue tracking.

Warnings

Install

Imports

Quickstart

After installing the plugin, you enable it by passing `--load-plugins pylint_celery` to your Pylint command. This integrates its checks into the linting process for your Celery-based code.

# 1. Install pylint-celery
pip install pylint-celery

# 2. Create a dummy Celery task file (e.g., myapp/tasks.py)
# Ensure Celery and Pylint are in your environment
# Example: myapp/tasks.py
# from celery import Celery
#
# app = Celery('myapp', broker='redis://localhost:6379/0')
#
# @app.task
# def add(x, y):
#     return x + y

# 3. Run Pylint with the plugin loaded
# Navigate to your project root or where your code resides
pylint --load-plugins pylint_celery myapp/tasks.py

view raw JSON →