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

Uploaded Python 3

File details

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

File metadata

  • Download URL: git_police-0.1.2.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.2.tar.gz
Algorithm Hash digest
SHA256 0901b5cbe29f7407e4910f8ac91a10106b87c24412c1475363972abdd83ac707
MD5 a98023b6c1d652473fc146d63ad0ce6f
BLAKE2b-256 365fa9bd3c3b64a26000d773a98b39631995b8f87ec12df8222d3351b52fb860

See more details on using hashes here.

File details

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

File metadata

  • Download URL: git_police-0.1.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 387d13e03a8712fcf155fd2089ca891dc10e7a76c27dd4490780b102e0483d79
MD5 2475c7482eebe446292eff8322fc8e87
BLAKE2b-256 0e9c6cd6c30f7ad10fc2678f9e1441158f9dc5d292f29901d849a97adf133c3b

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