Metadata-Version: 2.5
Name: habit-hooks-python
Version: 1.3.1
Summary: The Python Habit Hooks plugin
Project-URL: Homepage, https://habit-hooks.com
Project-URL: Repository, https://github.com/habit-hooks/habit-hooks
Project-URL: Issues, https://github.com/habit-hooks/habit-hooks/issues
Project-URL: Changelog, https://github.com/habit-hooks/habit-hooks/blob/main/CHANGELOG.md
License-Expression: MIT
Keywords: ai-coding-agents,ci,code-quality,code-review,code-smells,coding-agents,developer-tools,linter,python,refactoring,static-analysis,technical-debt
Classifier: Development Status :: 4 - Beta
Classifier: Environment :: Console
Classifier: Intended Audience :: Developers
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: Software Development :: Quality Assurance
Classifier: Topic :: Software Development :: Testing
Classifier: Topic :: Utilities
Requires-Python: >=3.11
Description-Content-Type: text/markdown

# habit-hooks-python

The Python Habit Hooks plugin: wraps [`ruff`](https://docs.astral.sh/ruff/) for
structural smells (complexity, too many parameters, swallowed exceptions, …)
and [`deptry`](https://github.com/fpgmaas/deptry) for dependency issues.

## Install

```sh
pip install "habit-hooks[python]"
```

## Enable

```toml
# .habit-hooks/config.toml
plugins = ["python", "generic"]
```

Installing a plugin does not switch it on — it has to be named in
`plugins` before habit-hooks runs it.

## Detectors

- [`ruff`](https://docs.astral.sh/ruff/), [`deptry`](https://github.com/fpgmaas/deptry) —
  `pip install ruff deptry`
- `jq` — from your system package manager (e.g. `brew install jq`)

Part of [habit-hooks](https://github.com/habit-hooks/habit-hooks).
