Convenience wrappers around helpful click patterns.
Project description
Bonus Click - bonus_click
Convenience wrappers around helpful click patterns.
Getting Started
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
Developer Guide
The following is documentation for developers that would like to contribute to Bonus Click.
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file bonus_click-0.0.1.tar.gz.
File metadata
- Download URL: bonus_click-0.0.1.tar.gz
- Upload date:
- Size: 4.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.19
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2651953d207a0dc70cda82c395a70f8b23fd5827fa8a77e8d3dc74aac2e3f2af
|
|
| MD5 |
92afd2fa9df59198916513f6c7c568d0
|
|
| BLAKE2b-256 |
4b6e875a035407459c403d95e4540b6097504808339a0a4db20e3830061323de
|
File details
Details for the file bonus_click-0.0.1-py3-none-any.whl.
File metadata
- Download URL: bonus_click-0.0.1-py3-none-any.whl
- Upload date:
- Size: 5.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.19
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
835c38a86a15554c6b7d86a3e1dfe0fb201d5741b6483918afbfcc59269df055
|
|
| MD5 |
022f8ae1ee4be3dec8c3f5741631748d
|
|
| BLAKE2b-256 |
49b5d4ebc7c1e45e502ad89519efdcae805712697858b23a55fd994d2fb5d12c
|