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
Metadata
Release files for pylint-web2py3 0.9.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pylint_web2py3-0.9.4.tar.gz | 17.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pylint_web2py3-0.9.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 35.0 kB
Release files / pylint_web2py3-0.9.4.tar.gz
| Download URL | pylint_web2py3-0.9.4.tar.gz |
|---|---|
| Size | 17.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e8f506429fdfc6991ec28c9f835578636af6e502686565f7d9559d28d89a68cc
|
|
BLAKE2b-256 checksum How to use checksums |
156ae0d93142350be38fe720b078440fa4b7702a8bd75a99c24aaedf38c4b131
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.9
|
Release files / pylint_web2py3-0.9.4-py3-none-any.whl
| Download URL | pylint_web2py3-0.9.4-py3-none-any.whl |
|---|---|
| Size | 17.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
112537e10a0f1a4dc5a34f30150836e741b3043c059b90356910a8bc1fe691c3
|
|
BLAKE2b-256 checksum How to use checksums |
842585100f6ee4b5e59e9c8976970556b5c131934e686d377faba64b329a52f6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.9
|