Skip to main content

Add your description here

Project description

Git Police

An Anti-AI slop tool that helps prevent slop code from being pushed and allows only the code that you understand to be pushed

To initialize

git-police init

To run global (only supports gemini for now)

export a GEMINI_API_KEY as an environment variable

git add .
GIT_POLICE_MODE=global git commit -m "msg"

To run a different ollama model than gemma3

If you don't have the ollama model Make sure you have ollama installed in your system

ollama pull your_model
GIT_POLICE_MODEL="your_model" git commit -m "msg"
git add .
GIT_POLICE_MODEL="your_model" git commit -m "msg"

Incase of hallucinations or emergency commits

git add .
git commit -m "your msg" --no-verify

See it work

approved

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

git_police-0.1.0.tar.gz (4.9 kB view details)

Uploaded Source

Built Distribution

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

git_police-0.1.0-py3-none-any.whl (5.9 kB view details)

Uploaded Python 3

File details

Details for the file git_police-0.1.0.tar.gz.

File metadata

  • Download URL: git_police-0.1.0.tar.gz
  • Upload date:
  • Size: 4.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.10 {"installer":{"name":"uv","version":"0.9.10"},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for git_police-0.1.0.tar.gz
Algorithm Hash digest
SHA256 2d8f62dd82fc4308ec1e28cccffd3110cfbfe84ecf4d27e097b603a2b18f7d46
MD5 97082609395164cb2771931b86634d21
BLAKE2b-256 bf36c1f485f4276a02cda973784bbfda6d1b401cb3d82ceed561486bb6ae0152

See more details on using hashes here.

File details

Details for the file git_police-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: git_police-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 5.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.10 {"installer":{"name":"uv","version":"0.9.10"},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for git_police-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 db620915c8d2ff8f2cf76f1bc3d9b3c49d9b55e13cc17b50d502611f90a6a29b
MD5 8f3c8b44edc4e8b7bb238352ab77e356
BLAKE2b-256 f44dd75d96ebde9bd79e7629a9eb66a611fe12dfff878d6aa6a9215b3d7b182c

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