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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: ruff2bitbucket-0.2.0.tar.gz
  • Upload date:
  • Size: 5.5 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.2.0.tar.gz
Algorithm Hash digest
SHA256 59ce983663b31743ed6a6214fcbd2668769072c2e96b4dd1b5fc84100d3f1c15
MD5 71021698dbf16020f2385ea068f08eaa
BLAKE2b-256 026f27ec550333360ab9ba21682c9e4017a584d15879a2c6b3010121d7ce3e39

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ruff2bitbucket-0.2.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.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 df3f51ebed9699aad24795074339f3e9c1773e1ec4968c19e7268b4335aa8fec
MD5 d1061aba75c5a87a0f7930c07dcf0343
BLAKE2b-256 0089f40d3667a48277a5f8d481a1ceff9c7417d302dc0684dae4d48e70f0d405

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