Metadata-Version: 2.4
Name: git-police
Version: 0.1.0
Summary: Add your description here
License: MIT
Requires-Python: >=3.13
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: google-genai>=1.51.0
Requires-Dist: ollama>=0.6.1
Requires-Dist: rich>=14.2.0
Requires-Dist: scrubadub>=2.0.1
Requires-Dist: typer>=0.20.0
Dynamic: license-file

# 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

```bash
git-police init
```

# To run global (only supports gemini for now)

export a `GEMINI_API_KEY` as an environment variable

```bash
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

```bash
ollama pull your_model
GIT_POLICE_MODEL="your_model" git commit -m "msg"
```

```bash
git add .
GIT_POLICE_MODEL="your_model" git commit -m "msg"
```

# Incase of hallucinations or emergency commits

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

# See it work

![approved](images/working_example.png)
