202251239-cell/hermes-backup/python-development

Claude Code and agent skill by 202251239-cell/hermes-backup

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Python dev: virtualenv, testing, packaging.

Install

npx vskill@latest install 202251239-cell/hermes-backup/python-development

SKILL.md

The same SKILL.md was published earlier as 202251239-cell/hermes-backup/python-development.

Python Development

Python development best practices: virtualenv, testing, packaging.

When to Use

  • Starting new Python projects
  • Setting up virtual environments
  • Writing tests
  • Packaging Python applications

Quick Reference

bash
# Create virtual environment
python3 -m venv venv
source venv/bin/activate # Linux/Mac
venv\Scripts\activate # Windows
# Install dependencies
pip install -r requirements.txt
pip install -e . # editable install
# Run tests
pytest
pytest -v # verbose
pytest -x # stop on first failure

Project Structure

my_project/
├── src/
│ └── my_project/
│ ├── __init__.py
│ └── main.py
├── tests/
│ ├── __init__.py
│ └── test_main.py
├── requirements.txt
├── setup.py
├── pyproject.toml
└── README.md

Requirements

bash
# Generate requirements
pip freeze > requirements.txt
# Install from requirements
pip install -r requirements.txt
# Use pip-tools for pinned deps
pip install pip-tools
pip-compile requirements.in
pip-sync

Testing with pytest

python
# test_main.py
def test_addition():
assert 1 + 1 == 2
def test_string():
assert "hello".upper() == "HELLO"

Code Quality

bash
# Linting
flake8 src/
pylint src/
# Formatting
black src/
isort src/
# Type checking
mypy src/

Packaging

python
# setup.py
from setuptools import setup, find_packages
setup(
name="my_project",
version="0.1.0",
packages=find_packages(),
install_requires=[
"requests>=2.28.0",
],
)

Common Patterns

  1. Use virtual environments for isolation
  2. Pin dependencies in requirements.txt
  3. Write tests before code (TDD)
  4. Use type hints for clarity
  5. Document with docstrings

Pitfalls

  • Don't install packages globally
  • Don't commit venv/ directory
  • Use .gitignore for __pycache__
  • Don't use mutable default arguments

Verification

bash
python -m pytest --tb=short
python -m mypy src/

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
5

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/202251239-cell/hermes-backup/python-development/badge)](https://verified-skill.com/skills/202251239-cell/hermes-backup/python-development)

Something wrong with this skill or its page? Tell us.