One-command setup for chub_guard - the AI SDK deprecation linter
Project description
chub-guard-init (pip)
One command to set up chub_guard in any Python project.
Prerequisites
- Python >= 3.10
- pip or pipx
- git
Usage
Option 1 — pipx (recommended, no permanent install)
pipx run chub-guard-init
Option 2 — pip
pip install chub-guard-init
chub-guard-init
This will:
- Copy
chub_guard.pyintoscripts/ - Write
.pre-commit-config.yaml - Write
.chub-docs/registry.json - Update
.gitignoreto ignore doc caches - Run
pre-commit installautomatically
After Setup
Install chub so the guard can fetch live docs:
npm install -g @aisuite/chub
Make a commit to test it:
git commit -m "test"
Suppressing False Positives
Add # noqa: UP035 to any line to skip:
import google.generativeai as genai # noqa: UP035
Also available via npm
npx chub-guard-init
Part of chub-guard
Full docs: https://github.com/rhealaloo45/chub-guard
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 chub_guard_init-1.0.2.tar.gz.
File metadata
- Download URL: chub_guard_init-1.0.2.tar.gz
- Upload date:
- Size: 8.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ccac7fe66ed17e661aed815ddbc55f3127145c28c9907eefda15fb676d7928fb
|
|
| MD5 |
1850bb800b9700299d6e97a8353e2f06
|
|
| BLAKE2b-256 |
10528597893d5f378c025625ff8c68fb4aad97ce0ac398a87f07bf59659f40ea
|
File details
Details for the file chub_guard_init-1.0.2-py3-none-any.whl.
File metadata
- Download URL: chub_guard_init-1.0.2-py3-none-any.whl
- Upload date:
- Size: 10.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7b15c382cc5ab5ae684565c4132e4615a50f71787eb2408a2f474006383536b2
|
|
| MD5 |
17a6940d7d4e8d0d92559d6a979ba374
|
|
| BLAKE2b-256 |
519b42abc5910dc0c56da4ccbc2f70d4997495fbed65d651baee29522f276283
|