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.1.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.1-py3-none-any.whl (5.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: git_police-0.1.1.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.1.tar.gz
Algorithm Hash digest
SHA256 e6eeec8974ae0465125a3c6fcdbfed9ace383a03d922635c60fa5cb5396cd265
MD5 20f61664a242b05604129cf4ecfc3863
BLAKE2b-256 35bb4713950e3c13a589d331d3978b7f864cd3675281efa4bb7c6006615475ea

See more details on using hashes here.

File details

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

File metadata

  • Download URL: git_police-0.1.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5e2c90bb9b2d3015da27b17936f2e0a2812ca09b7ce6dab808b5244c061207cf
MD5 8a726acb247c812c8d7a1b95d9f45439
BLAKE2b-256 c0a804295cb996e4e0e30e0e284e3c3e2569cef8a6eaa5386026628c381e038a

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