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.5.tar.gz (9.2 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.5-py3-none-any.whl (11.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: chub_guard_init-1.0.5.tar.gz
  • Upload date:
  • Size: 9.2 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.5.tar.gz
Algorithm Hash digest
SHA256 4d2d1325868f6ebeadfac860790372ee63cf2e98d5c77b8dc42c3c5dafc66997
MD5 45e9b4e0d8c046c3f7f5a0fd91cf7090
BLAKE2b-256 c315ad83983a8b7eea7fa6a72ee325678a0f528090e060e2347274e7ef8eebc1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for chub_guard_init-1.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 9c1e94626c28658dcdaf3bd03533e2cbd2615c72af0783bc0fbe11d68263366d
MD5 9e5e51032291e5802cc4fdb3c4ced2ff
BLAKE2b-256 20b2f58c630a24d7f2448f9c7ebfd783124dab155a0ed0c7a5f31d69a53fdc74

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