Skip to main content

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/queengooborg/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

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.4.tar.gz (17.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pylint_web2py3-0.9.4-py3-none-any.whl (17.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pylint_web2py3-0.9.4.tar.gz
  • Upload date:
  • Size: 17.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.9

File hashes

Hashes for pylint_web2py3-0.9.4.tar.gz
Algorithm Hash digest
SHA256 e8f506429fdfc6991ec28c9f835578636af6e502686565f7d9559d28d89a68cc
MD5 5c0e5f2d08dc21210e347676e9e4d28c
BLAKE2b-256 156ae0d93142350be38fe720b078440fa4b7702a8bd75a99c24aaedf38c4b131

See more details on using hashes here.

File details

Details for the file pylint_web2py3-0.9.4-py3-none-any.whl.

File metadata

  • Download URL: pylint_web2py3-0.9.4-py3-none-any.whl
  • Upload date:
  • Size: 17.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.9

File hashes

Hashes for pylint_web2py3-0.9.4-py3-none-any.whl
Algorithm Hash digest
SHA256 112537e10a0f1a4dc5a34f30150836e741b3043c059b90356910a8bc1fe691c3
MD5 f610237aec3fc8b8600aea05a2c9513c
BLAKE2b-256 842585100f6ee4b5e59e9c8976970556b5c131934e686d377faba64b329a52f6

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.9.4 This release

2 files

0.9.2

1 file

0.9.1

1 file

0.9.0

3 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page