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_web2py3to pylint options or - Add
load-plugins=pylint_web2py3to 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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e8f506429fdfc6991ec28c9f835578636af6e502686565f7d9559d28d89a68cc
|
|
| MD5 |
5c0e5f2d08dc21210e347676e9e4d28c
|
|
| BLAKE2b-256 |
156ae0d93142350be38fe720b078440fa4b7702a8bd75a99c24aaedf38c4b131
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
112537e10a0f1a4dc5a34f30150836e741b3043c059b90356910a8bc1fe691c3
|
|
| MD5 |
f610237aec3fc8b8600aea05a2c9513c
|
|
| BLAKE2b-256 |
842585100f6ee4b5e59e9c8976970556b5c131934e686d377faba64b329a52f6
|