Skip to main content

Send your ruff results to bitbucket as annotations.

Project description

Ruff2BitBucket

ruff is an extremely fast Python linter and code formatter, written in Rust.

BitBucket is an Atlassian product which provides a visual git interface (basically).

With ruff2bitbucket you can run your ruff-validations and upload them as a code insight directly into BitBucket.

Installation

pip install ruff2bitbucket

Usage

Change your directory to where the configuration file is stored and run:

ruff2bitbucket [--user ...] [--pass ...]

⚠ It's important that you are in the right directory!

Configuration

You should refer to the ruff configuration docs on how to modify your pyproject.toml (or ruff.toml, or .ruff.toml) in order to provide more extensive checks.

Security

If no user or pass is passed, the environment variables are scanned for anything that looks like USER/USR and PASS/PW. When a match is found, this'll be used to attach the annotations to the current commit hash.

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

ruff2bitbucket-0.3.0.tar.gz (5.7 kB view details)

Uploaded Source

Built Distribution

ruff2bitbucket-0.3.0-py3-none-any.whl (7.4 kB view details)

Uploaded Python 3

File details

Details for the file ruff2bitbucket-0.3.0.tar.gz.

File metadata

  • Download URL: ruff2bitbucket-0.3.0.tar.gz
  • Upload date:
  • Size: 5.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.9.18 Linux/6.1.0-13-amd64

File hashes

Hashes for ruff2bitbucket-0.3.0.tar.gz
Algorithm Hash digest
SHA256 06b66ef5f41e13cfb584689f7ef98fe7ebda4ebe6695392bb646e882db6f0fba
MD5 c59939384a7e38dfda485b2ef2360e22
BLAKE2b-256 75e942ea6d4c90a51a2ff74356a080e60649b4514e51606b9d7865b0b2379383

See more details on using hashes here.

File details

Details for the file ruff2bitbucket-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: ruff2bitbucket-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 7.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.9.18 Linux/6.1.0-13-amd64

File hashes

Hashes for ruff2bitbucket-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0f11227459b989bd919cb664eb0412d4366d043820bc6a88c31f15b4c23bf187
MD5 935c3a5f2e28e1c06aeabe0087fe91da
BLAKE2b-256 61c63d971bbcfb19a33c72ee068078bd255c294792e0843237060f0f3827f9f9

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