Skip to main content

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.py into scripts/
  • Write .pre-commit-config.yaml
  • Write .chub-docs/registry.json
  • Update .gitignore to ignore doc caches
  • Run pre-commit install automatically

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

chub_guard_init-1.0.1.tar.gz (7.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

chub_guard_init-1.0.1-py3-none-any.whl (9.4 kB view details)

Uploaded Python 3

File details

Details for the file chub_guard_init-1.0.1.tar.gz.

File metadata

  • Download URL: chub_guard_init-1.0.1.tar.gz
  • Upload date:
  • Size: 7.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.9

File hashes

Hashes for chub_guard_init-1.0.1.tar.gz
Algorithm Hash digest
SHA256 d39b5c848e30e24b014d6ad6c96cbb0ac0dcb4849b8ea51eac55439263895d42
MD5 7b2ce6c3f774c33e226f499f1d2ba8b7
BLAKE2b-256 efade719300e583f82c5f6f87f26c1176a93833e4e4e5239a48a51f59aecd90e

See more details on using hashes here.

File details

Details for the file chub_guard_init-1.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for chub_guard_init-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c96a5a4d40722ae3de4be715c8a25fa1340455cf132917ea685b0dcad4fd11cc
MD5 4059a0c71ca1deb0669678df08bfb58a
BLAKE2b-256 c99c0ba492f8c898dcafd6030e1db008d3bf28562ed4415e3018d7c9e13d7c83

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page