code-style
Installation
SKILL.md
Python Code Style
Formatting
- Use Ruff for formatting (
ruff format .) - Indentation: 4 spaces
- Max line length: 120 characters
- Use trailing commas in multi-line collections
Naming Conventions
- Functions and variables:
snake_case - Classes:
PascalCase - Constants:
UPPER_SNAKE_CASE - Private members:
_leading_underscore - Module files:
snake_case.py
Type Hints
- Required for all function parameters and return types
- Use
Optional[T]orT | Nonefor nullable types - Use
list[T],dict[K, V](lowercase) for Python 3.10+
Related skills
More from meleantonio/chernycode
testing
Testing conventions using pytest. Use when writing tests, creating fixtures, or running test suites.
1techdebt
Find and fix technical debt including duplicated code, dead code, outdated patterns, and code smells. Run at the end of sessions to clean up.
1git-workflow
Git workflow and commit conventions. Use when committing code, creating branches, or making pull requests.
1llm-development
LLM and ML development best practices with LangChain and transformers. Use when building AI/ML applications.
1code-simplifier
Simplify and clean up code after changes are complete. Reduces complexity, improves readability, and ensures consistency.
1commit-push-pr
Commit changes, push to remote, and create a pull request. Use for completing features or fixes ready for review.
1