Skip to main content

Bonus Click - bonus_click

Convenience wrappers around helpful click patterns.

Getting Started

Install with pip:

pip install bonus-click

Developer Guide

The following is documentation for developers that would like to contribute to Bonus Click.

Python Dependencies

Poetry is required to manage Python dependencies. You can install it easily by following the operating system specific instructions here.

pyproject.toml contains dependencies for required Python modules for building, testing, and developing. They can all be installed in a virtual environment using the follow commands:

python3.10 -m venv .venv
source ./.venv/bin/activate
poetry install

There's also a bin script to do this, and will install poetry if you don't already have it:

./tools/create_venv.sh

Testing

This project uses pytest to manage and run unit tests. Unit tests located in the test directory are automatically run during the CI build. You can run them manually with:

./tools/run_tests.sh

Local Linting

There are a few linters/code checks included with this project to speed up the development process:

  • Black - An automatic code formatter, never think about python style again.
  • Isort - Automatically organizes imports in your modules.
  • Pylint - Check your code against many of the python style guide rules.
  • Mypy - Check your code to make sure it is properly typed.

You can run these tools automatically in check mode, meaning you will get an error if any of them would not pass with:

./tools/run_checks.sh

Or actually automatically apply the fixes with:

./tools/apply_linters.sh

There are also scripts in ./tools/ that include run/check for each individual tool.

Using pre-commit

Upon cloning the repo, to use pre-commit, you'll need to install the hooks with:

pre-commit install --hook-type pre-commit --hook-type pre-push

By default:

  • black
  • pylint
  • isort
  • mypy

Are all run in apply-mode and must pass in order to actually make the commit.

Also by default, pytest needs to pass before you can push.

If you'd like skip these checks you can commit with:

git commit --no-verify

If you'd like to quickly run these pre-commit checks on all files (not just the staged ones) you can run:

pre-commit run --all-files

Metadata

Release files for bonus-click 0.6.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for bonus-click 0.6.0
File Size Uploaded Provenance Actions
bonus_click-0.6.0.tar.gz 7.2 kB Without provenance Details for bonus_click-0.6.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for bonus-click 0.6.0
File Interpreter ABI Platform Actions
bonus_click-0.6.0-py3-none-any.whl Python 3 none any Details for bonus_click-0.6.0-py3-none-any.whl

Total release size: 16.5 kB

Release files / bonus_click-0.6.0.tar.gz

Download URL bonus_click-0.6.0.tar.gz
Size 7.2 kB
Tags Source
SHA-256 checksum
How to use checksums
6a2feda97bdb75fe30006e9301caaf921b796e8946e4e20ccdef5f2966071de1
BLAKE2b-256 checksum
How to use checksums
7cdbdc3fa5b28ced0f4cb801156d88e6567122c6934198f4a411d4f43b74fb03
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.10.22

Release files / bonus_click-0.6.0-py3-none-any.whl

Download URL bonus_click-0.6.0-py3-none-any.whl
Size 9.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d90af8da352aa3da9ce02a42c43944fcab321b8f551d514ef6677151d94e4238
BLAKE2b-256 checksum
How to use checksums
8ea16b895ade4fd7cf99e9bb851d6c7f97a99fe2b8218fbb6c65553746e9b2e9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.10.22

Security for bonus-click 0.6.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page