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
Enabling Plugin
- Add
--load-plugins=pylint_web2py3
to pylint options or - Add
load-plugins=pylint_web2py3
to your .pylintrc
Project details
Release history Release notifications | RSS feed
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.0.tar.gz
(4.8 kB
view hashes)
Built Distributions
Close
Hashes for pylint_web2py3-0.9.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 46ba8f496729e2d379a740fe8fbe76ef8d2ec7500b2017a8adad5b9d43f30698 |
|
MD5 | b794ca2723ed098bb72c07fa084e2e2b |
|
BLAKE2b-256 | 7457579202645425b4267d94c4deb6a04e067661eaabe71e174a5d082ced733f |