@hugsylabs/plugin-python
v0.0.7
Published
Python development support for Hugsy - adds Python toolchain permissions and hooks
Downloads
6
Maintainers
Readme
@hugsylabs/plugin-python
Python development support for Hugsy - comprehensive Python toolchain integration for Claude Code.
Features
- 🐍 Python Interpreter - Full Python 2/3 support
- 📦 Package Management - pip, poetry, pipenv, conda
- 🧪 Testing - pytest, unittest, tox
- 🎨 Code Quality - black, isort, flake8, pylint, mypy, ruff
- 🔐 Security - bandit security linting
- 📚 Documentation - sphinx, mkdocs support
- 🌍 Virtual Environments - venv, virtualenv auto-detection
Installation
npm install @hugsylabs/plugin-pythonUsage
Add to your .hugsyrc.json:
{
"extends": "@hugsylabs/hugsy-compiler/presets/development",
"plugins": ["@hugsylabs/plugin-python"]
}Permissions Added
Allow
- Python execution (
python,python3) - Package management (
pip,poetry,pipenv,conda) - Virtual environment management
- Testing tools (
pytest,unittest,tox) - Code formatters (
black,isort) - Linters (
flake8,pylint,mypy,ruff,bandit) - Documentation tools (
sphinx,mkdocs) - Python file writing (
*.py,requirements.txt,setup.py, etc.)
Ask
- Package installation operations
- Database migrations
Deny
- Force reinstall operations
- Virtual environment deletion
- Cache and build directory modifications
Hooks
Pre-Tool Use
- Virtual Environment Detection - Reminds to activate venv
- Format Check - Runs black before commits
- Test Before Push - Runs pytest before pushing
Post-Tool Use
- Type Checking - Runs mypy after Python file changes
- Requirements Update - Reminds to update requirements.txt
Environment Variables
PYTHONDONTWRITEBYTECODE=1- Prevents .pyc file creationPYTHONUNBUFFERED=1- Ensures output is shown immediatelyPIP_DISABLE_PIP_VERSION_CHECK=1- Disables pip version warnings
Examples
Basic Python Project
{
"plugins": ["@hugsylabs/plugin-python"]
}Python with Testing
{
"plugins": ["@hugsylabs/plugin-python", "@hugsylabs/plugin-test"]
}Full Python Development
{
"plugins": [
"@hugsylabs/plugin-python",
"@hugsylabs/plugin-git",
"@hugsylabs/plugin-test",
"@hugsylabs/commands-dev"
]
}License
MIT
