No project description provided
Project description
CodeLimit
Your Refactoring Alarm
Quickstart
Installation
CodeLimit can be installed as a pre-commit hook so it alarms you during development when it's time to refactor:
- repo: https://github.com/getcodelimit/codelimit
rev: v0.2.1
hooks:
- id: codelimit
CodeLimit is intended to be used alongside formatting, linters and other hooks
that improve the consistency and quality of your code (such as Black, Ruff and
MyPy.) As an example pre-commit configuration see the
pre-commit-config.yaml
from CodeLimit itself.
When running as a hook, CodeLimit warns about functions that should be refactored and fails for functions that need to be refactord.
To show your project uses CodeLimit place this badge in the README markdown:
![Checked with CodeLimit](https://img.shields.io/badge/CodeLimit-checked-green.svg)](https://github.com/getcodelimit/codelimit)
Standalone
To install the standalone version of CodeLimit for your default Python installation run:
python -m pip install codelimit
Development
After installing depencies with poetry install
, CodeLimit can be run from the
repository root like this:
poetry run codelimit
For example, to check a codebase at ~/projects/fastapi
run:
poetry run codelimit ~/projects/fastapi
Using the Textal debug console
Open a terminal and start the Textual debug console:
poetry run textual console
Next, open another terminal and start Code Limit in development mode:
poetry run textual run --dev main.py
Building the binary distribution
Generate a self-contained binary:
poetry run poe bundle
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
File details
Details for the file codelimit-0.3.0.tar.gz
.
File metadata
- Download URL: codelimit-0.3.0.tar.gz
- Upload date:
- Size: 17.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cac7808ab95414f28a32b8b632ed5ab3d9caca0cfd933a2c337b7a457e1f96c6 |
|
MD5 | 081d0b91cba11e48484550019bcc1730 |
|
BLAKE2b-256 | 2ee1f1994a0f4fd8525eb31a0818bca94bedae117d8b925720a3566e0dfc3a25 |
File details
Details for the file codelimit-0.3.0-py3-none-any.whl
.
File metadata
- Download URL: codelimit-0.3.0-py3-none-any.whl
- Upload date:
- Size: 29.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1e625ef1a758b751c70e85dda364221b9974cb9afb2b46cd387ca840df2d91a5 |
|
MD5 | 53d59d1166f15c757caf0521fd315944 |
|
BLAKE2b-256 | 7cf60b67e54b2b5e4bb40c8209d503e16aed155ecb95869ddf678df499c531e6 |