Skip to main content

pylint_web2py3 is a disciple of pylint-web2py and pylint_web2py2 with better web2py support

Project description

pylint_web2py3

A Pylint plugin that removes Pylint's complaints about web2py code.

Description

Web2py executes user code in special environment populated with predefined objects and types and with objects defined in model files. It also has magic import mechanism which knows some special places where to find modules.

Pylint doesn't know about these details -- its parser is unable to find these objects and modules, resulting in a flood of laments. This plugin:

  • Adds variables defined in models to other models' and controllers' scope
  • Adds definition of some predefined global objects to models and controllers
  • Adds web2py module paths to sys.path, so pylint is able to find them

Installation

You can either install this plugin from Pip:

pip install pylint_web2py3

Or, you can install from source:

git clone https://github.com/vinyldarkscratch/pylint_web2py3
cd pylint_web2py3
python setup.py install

Enabling Plugin

  • Add --load-plugins=pylint_web2py3 to pylint options or
  • Add load-plugins=pylint_web2py3 to your .pylintrc

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pylint_web2py3-0.9.2.tar.gz (4.9 kB view details)

Uploaded Source

File details

Details for the file pylint_web2py3-0.9.2.tar.gz.

File metadata

  • Download URL: pylint_web2py3-0.9.2.tar.gz
  • Upload date:
  • Size: 4.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/47.1.1 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.7

File hashes

Hashes for pylint_web2py3-0.9.2.tar.gz
Algorithm Hash digest
SHA256 419cb71aa7122f178ed19d0f41644f1872905cbdabde9c332c095b29c42b87a9
MD5 2d5ec4b34605762249ee99c003602bfa
BLAKE2b-256 fb3f72ab7e8ca66ec0ed10f82b4118bb0f7aef445d84147f1b076aae8565c981

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page