Skip to main content

A Pylint plugin to help Pylint understand the Behave projects

Project description

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 git+https://github.com/eccanto/pylint-behave.git

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

GPLv2

Changelog

  • 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.0.tar.gz (12.7 kB view details)

Uploaded Source

File details

Details for the file pylint-behave-1.0.0.tar.gz.

File metadata

  • Download URL: pylint-behave-1.0.0.tar.gz
  • Upload date:
  • Size: 12.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.4.2 requests/2.26.0 setuptools/45.2.0 requests-toolbelt/0.8.0 tqdm/4.59.0 CPython/3.8.10

File hashes

Hashes for pylint-behave-1.0.0.tar.gz
Algorithm Hash digest
SHA256 0d5a148218ff59734ece1207b2c3f0d1e6b7366954e4468c6b56916f34a846d7
MD5 a0a83b2a0c9ebe92a3b5dfb7a47fe3ef
BLAKE2b-256 a04f3760d0cc56fa518820fecdd6647bdf4f548804e1e6f4e9bbf24db53eb197

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page