Skip to main content

A flake8 plugin for bitbucket insights.

Project description

Python Version Build Status Black PyPi Version

A flake8 plugin for bitbucket code insights.

DISCLAIMER

Updates to this package will be very slow.

Bitbucket requires license keys to use their product, and this makes system testing needlessly difficult.

Installation

Tested with Python 3.8.

python3.8 -m pip install flake8-bitbucket

Usage

flake8-bitbucket adds these CLI options to flake8. These options can be provided via the CLI or a .flake8 configuration file.

flake8-bitbucket:
--bitbucket-api-token BITBUCKET_API_TOKEN
                        Bitbucket API token for authentication, or a path to a file containing the token. Setting this option will automatically enable flake8-bitbucket as the formatter.
--bitbucket-url BITBUCKET_URL
                        Bitbucket server URL, such as http://localhost:8090.
--bitbucket-project-key BITBUCKET_PROJECT_KEY
                        Bitbucket project key.
--bitbucket-repository-slug BITBUCKET_REPOSITORY_SLUG
                        Bitbucket respository slug.
--bitbucket-suppress  Exit with code 0 on bitbucket HTTP failures.
--bitbucket-verify BITBUCKET_VERIFY
                        Path to SSL certificate (.pem) for HTTPS bitbucket connections.
--bitbucket-delete    Delete the report and exit.

For example:

flake8 . \
    --bitbucket-api-token MTA2MDg0MzcwODU4Okhh8vnnicQGd4immIB6LbB+mopl \
    --bitbucket-url http://localhost:7990/ \
    --bitbucket-project-key TEST \
    --bitbucket-repository-slug smellyrepo
https://raw.githubusercontent.com/newAM/flake8-bitbucket/master/smelly_code.png

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

flake8-bitbucket-0.1.10.tar.gz (4.9 kB view hashes)

Uploaded Source

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