pylint-celery-0.3/0000775000175000017500000000000012410741402014035 5ustar carlcarl00000000000000pylint-celery-0.3/pylint_celery.egg-info/0000775000175000017500000000000012410741402020411 5ustar carlcarl00000000000000pylint-celery-0.3/pylint_celery.egg-info/SOURCES.txt0000664000175000017500000000042012410741402022271 0ustar carlcarl00000000000000setup.py pylint_celery/__init__.py pylint_celery.egg-info/PKG-INFO pylint_celery.egg-info/SOURCES.txt pylint_celery.egg-info/dependency_links.txt pylint_celery.egg-info/not-zip-safe pylint_celery.egg-info/requires.txt pylint_celery.egg-info/top_level.txt test/test_func.pypylint-celery-0.3/pylint_celery.egg-info/not-zip-safe0000664000175000017500000000000112410741402022637 0ustar carlcarl00000000000000 pylint-celery-0.3/pylint_celery.egg-info/requires.txt0000664000175000017500000000006412410741402023011 0ustar carlcarl00000000000000pylint>=1.0 astroid>=1.0 pylint-plugin-utils>=0.2.1 pylint-celery-0.3/pylint_celery.egg-info/dependency_links.txt0000664000175000017500000000000112410741402024457 0ustar carlcarl00000000000000 pylint-celery-0.3/pylint_celery.egg-info/top_level.txt0000664000175000017500000000001612410741402023140 0ustar carlcarl00000000000000pylint_celery pylint-celery-0.3/pylint_celery.egg-info/PKG-INFO0000664000175000017500000000057512410741402021515 0ustar carlcarl00000000000000Metadata-Version: 1.0 Name: pylint-celery Version: 0.3 Summary: pylint-celery is a Pylint plugin to aid Pylint in recognising and understandingerrors caused when using the Celery library Home-page: https://github.com/landscapeio/pylint-celery Author: landscape.io Author-email: code@landscape.io License: GPLv2 Description: UNKNOWN Keywords: pylint celery plugin Platform: UNKNOWN pylint-celery-0.3/pylint_celery/0000775000175000017500000000000012410741402016717 5ustar carlcarl00000000000000pylint-celery-0.3/pylint_celery/__init__.py0000664000175000017500000000130012375426102021031 0ustar carlcarl00000000000000from astroid import MANAGER from astroid.builder import AstroidBuilder from astroid import nodes def register(_): # this method is expected by pylint for plugins, however we don't # want to register any checkers pass MODULE_TRANSFORMS = {} def transform(module): try: tr = MODULE_TRANSFORMS[module.name] except KeyError: pass else: tr(module) MANAGER.register_transform(nodes.Module, transform) def celery_transform(module): fake = AstroidBuilder(MANAGER).string_build(''' class task_dummy(object): def __call__(self): pass ''') module.locals['task'] = fake.locals['task_dummy'] MODULE_TRANSFORMS['celery'] = celery_transform pylint-celery-0.3/test/0000775000175000017500000000000012410741402015014 5ustar carlcarl00000000000000pylint-celery-0.3/test/test_func.py0000664000175000017500000000170612375426102017373 0ustar carlcarl00000000000000 from os.path import join, dirname, abspath import unittest from logilab.common import testlib from pylint.testutils import make_tests, LintTestUsingModule, LintTestUsingFile, cb_test_gen, linter import sys INPUT_DIR = join(dirname(abspath(__file__)), 'input') MESSAGES_DIR = join(dirname(abspath(__file__)), 'messages') CALLBACKS = [cb_test_gen(LintTestUsingModule), cb_test_gen(LintTestUsingFile)] FILTER_RGX = None linter.load_plugin_modules(['pylint_celery']) linter.global_set_option('required-attributes', ()) # remove required __revision__ def suite(): return testlib.TestSuite([unittest.makeSuite(test, suiteClass=testlib.TestSuite) for test in make_tests(INPUT_DIR, MESSAGES_DIR, FILTER_RGX, CALLBACKS)]) if __name__=='__main__': if len(sys.argv) > 1: FILTER_RGX = sys.argv[1] del sys.argv[1] testlib.unittest_main(defaultTest='suite') pylint-celery-0.3/setup.py0000664000175000017500000000154612410741243015560 0ustar carlcarl00000000000000# -*- coding: UTF-8 -*- from distutils.core import setup from setuptools import find_packages _version = "0.3" _packages = find_packages(exclude=["*.tests", "*.tests.*", "tests.*", "tests"]) _short_description = "pylint-celery is a Pylint plugin to aid Pylint in recognising and understanding" \ "errors caused when using the Celery library" setup( name='pylint-celery', url='https://github.com/landscapeio/pylint-celery', author='landscape.io', author_email='code@landscape.io', description=_short_description, version=_version, packages=_packages, install_requires=['pylint>=1.0', 'astroid>=1.0', 'pylint-plugin-utils>=0.2.1'], license='GPLv2', keywords='pylint celery plugin', zip_safe=False, # https://github.com/landscapeio/prospector/issues/18#issuecomment-49857277 ) pylint-celery-0.3/setup.cfg0000664000175000017500000000007312410741402015656 0ustar carlcarl00000000000000[egg_info] tag_build = tag_date = 0 tag_svn_revision = 0 pylint-celery-0.3/PKG-INFO0000664000175000017500000000057512410741402015141 0ustar carlcarl00000000000000Metadata-Version: 1.0 Name: pylint-celery Version: 0.3 Summary: pylint-celery is a Pylint plugin to aid Pylint in recognising and understandingerrors caused when using the Celery library Home-page: https://github.com/landscapeio/pylint-celery Author: landscape.io Author-email: code@landscape.io License: GPLv2 Description: UNKNOWN Keywords: pylint celery plugin Platform: UNKNOWN