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.3.0
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.1.tar.gz
.
File metadata
- Download URL: codelimit-0.3.1.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 | 007a970b9c12c1e89212070a1fe58f628ba81422024b2aa147a3d8d755992e1e |
|
MD5 | d0abc634acefa448dc2750167cc540a9 |
|
BLAKE2b-256 | f899a66a625f6aa11f43945974aaa8d259e35cfac1227644a0cd4772923f5645 |
File details
Details for the file codelimit-0.3.1-py3-none-any.whl
.
File metadata
- Download URL: codelimit-0.3.1-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 | 03934ee7f3029b7e26eedd837c4572b9e75055aee1aaab7cb269b4b80919b41e |
|
MD5 | fc7496f43dc8e6fba192dd01e1a2b631 |
|
BLAKE2b-256 | e9cca698102f76cfa7329f16a3e1625a05f4e038f2cfa6c289ba805d731de409 |