2022-09-08 16:44:08 -07:00
2022-09-08 14:30:41 -07:00
2022-09-08 14:24:02 -07:00
2022-09-08 11:58:50 -07:00
2022-09-08 14:13:52 -07:00
2022-09-08 16:44:08 -07:00
2022-09-08 11:38:14 -07:00
2022-09-08 11:58:20 -07:00
2022-09-08 14:33:16 -07:00
2022-09-08 11:59:09 -07:00
2022-09-08 11:59:00 -07:00

clive-owen

Clive Owen

A simple one-file CLI package. Demonstrates the following:

  • How to implement a simple command line utility with Click, in a single .py file
  • How to create a setup.py file alongside the CLI utility, for a bare-minimum installation
  • How to implement git pre-commit hooks with pre-commit

Screenshot

Screenshot of pre-commit hooks in action:

Screenshot of pre-commit hooks in action

Quick start

git clone git@github.com:charlesreid1-toy-factory/clive-owen.git
cd clive-owen

# Start a virtual environment if you wish

pip install -r requirements.txt
pip install --editable .
clive --help

And to install the pre-commit hooks:

pre-commit install
Description
CLI Demo: Simple one-file CLI package implementing git hooks for linting.
Readme 508 KiB
Languages
Python 100%