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.1.0.tar.gz (5.4 kB view details)

Uploaded Source

Built Distribution

ruff2bitbucket-0.1.0-py3-none-any.whl (7.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ruff2bitbucket-0.1.0.tar.gz
  • Upload date:
  • Size: 5.4 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.1.0.tar.gz
Algorithm Hash digest
SHA256 d9b5435582b9a7d7198da878a66b99e402ab80e103a65db1843073f6d78e751a
MD5 040694dbd116c817bbf7f4279844c953
BLAKE2b-256 b58f441618f041bcac5e2600d74f7d7d7a4189b39a40cdb130ecef46094a05e4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ruff2bitbucket-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 7.2 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.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 dfe35de5250f3fa57c07bebf5a41f4a4d79cb753750ff11ff3f16922e1cacd5d
MD5 26a8435fab73198673ad3f5bb84ded2e
BLAKE2b-256 066cff8e96a7670ee81a74c67f3f4d11ad4e44ef2dd01fce1eb8dacb52111147

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