Pylint plugin to help Pylint understand the Behave projects
Project description
pylint-behave
pylint-behave
is a Pylint plugin to improve code analysis when analyzing a Behave project.
Table of contents
Get started
Installation
This plugin can be simply installed by running:
pip install pylint-behave
if you want to install from a source distribution:
git clone https://github.com/eccanto/pylint-behave.git
cd pylint-behave/
python setup.py install
Usage
Ensure pylint-behave
is installed and on your PATH
:
pylint --load-plugins=pylint_behave [options..] <path_to_your_code>
Features
-
Prevents warnings about redefined names in the Behave steps (
step_impl
).@step('step 1') def step_impl(): pass @given('given 1') def step_impl(): pass
-
Prevents warnings about no names in the Behave module (
step
,given
,when
, etc.).from behave import step, given
Testing
We use tox and pytest to run the test suite:
tox
to run the test suite for a particular Python version (36, 37, 38 or 39), you can do:
tox -e py36
License
Changelog
- 1.0.1 - Compatibility with pylint outdated versions.
- 1.0.0 - Initial version.
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-behave-1.0.1.tar.gz
(12.7 kB
view hashes)
Built Distribution
Close
Hashes for pylint_behave-1.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d44b320e6cbae22b62c272a4c7cff98a4fa3d5274d3ec53199912f9b590d52e8 |
|
MD5 | 3377a2184df7d3a4b608c4f815069a92 |
|
BLAKE2b-256 | 9cf5829226e5b14ad68f1f72140550609eeba9acd8672b63a90ee96539efba48 |