Skip to main content

code style: prettier

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

Requirements

pip3 install -r requirements.txt

Set Python versions

  1. Install pyenv
  2. Install python versions:
    for python_version in "3.7" "3.8" "3.9" "3.10" "3.11" "3.12" ; do pyenv install ${python_version}; done
    
  3. Enable python versions:
    pyenv local "3.7" "3.8" "3.9" "3.10" "3.11" "3.12"
    

Run

We use tox and pytest to run the test suite:

tox

to run the test suite for a particular Python version, you can do:

tox -e py37

License

MIT

Metadata

Release files for pylint-behave 1.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pylint-behave 1.0.3
File Size Uploaded Provenance Actions
pylint_behave-1.0.3.tar.gz 6.7 kB Without provenance Details for pylint_behave-1.0.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pylint-behave 1.0.3
File Interpreter ABI Platform Actions
pylint_behave-1.0.3-py3-none-any.whl Python 3 none any Details for pylint_behave-1.0.3-py3-none-any.whl

Total release size: 14.5 kB

Release files / pylint_behave-1.0.3.tar.gz

Download URL pylint_behave-1.0.3.tar.gz
Size 6.7 kB
Tags Source
SHA-256 checksum
How to use checksums
c5d1cf6945a5884b7e2c5bd3aed9e04036feea8d0b06050a5c31d844e829be75
BLAKE2b-256 checksum
How to use checksums
857ca15d94dec7d8a6f2dfa36eb8a1517b87f40f463a5035622ce56a63480cd6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.0 CPython/3.12.2

Release files / pylint_behave-1.0.3-py3-none-any.whl

Download URL pylint_behave-1.0.3-py3-none-any.whl
Size 7.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e63f70ce895c6e874c5b526574d14faf2c75b2d88dcac6979fdf39c226c145b2
BLAKE2b-256 checksum
How to use checksums
686ffe3635d4bc394473e14b76b2a125a57fbccda488640c9730c08fdd63b41c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.0 CPython/3.12.2

Security for pylint-behave 1.0.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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