Toolverse
All skills

python-code-style

by wshobson

Python code style, linting, formatting, naming conventions, and documentation standards. Use when writing new code, reviewing style, configuring linters, writing docstrings, or establishing project standards.

Installation

Pick a client and clone the repository into its skills directory.

Installation

Quick info

Author
wshobson
Category
Backend
Views
46

About this skill

Python code style, linting, formatting, naming conventions, and documentation standards. Use when writing new code, reviewing style, configuring linters, writing docstrings, or establishing project standards.

How to use

  1. Zainstaluj nowoczesne narzędzia do lintingu i formatowania, uruchamiając w terminalu: pip install ruff mypy. Ruff zastępuje flake8, isort i black jednym szybkim narzędziem.

  2. Utwórz lub edytuj plik pyproject.toml w katalogu głównym projektu. Dodaj sekcję [tool.ruff] z konfiguracją linii (np. line-length = 120) i docelową wersją Pythona (target-version = "py312").

  3. W sekcji [tool.ruff.lint] zdefiniuj reguły do sprawdzania — wybierz kategorie takie jak E (błędy pycodestyle), F (pyflakes), I (isort), B (bugbear) i UP (pyupgrade). Dodaj sekcję [tool.mypy] z opcją strict = true dla ścisłej kontroli typów.

  4. Uruchom ruff na swoim kodzie poleceniem ruff check . aby znaleźć problemy ze stylem i konsystencją. Użyj ruff format . aby automatycznie naprawić formatowanie.

  5. Podczas pisania lub przeglądu kodu zwróć uwagę na docstringi — utrzymuj je obok kodu, który opisują. Dodaj type hints do publicznych API projektu.

  6. Skonfiguruj mypy do sprawdzania typów, uruchamiając mypy . w katalogu projektu. Narzędzie wychwyta błędy typów przed uruchomieniem kodu.

Related skills

drizzle

by lobehub

Drizzle ORM schema and database guide. Use when working with database schemas (src/database/schemas/*), defining tables, creating migrations, or database model code. Triggers on Drizzle schema definition, database migrations, or ORM usage questions.

Backend
79340

sql-optimization-patterns

by wshobson

Master SQL query optimization, indexing strategies, and EXPLAIN analysis to dramatically improve database performance and eliminate slow queries. Use when debugging slow queries, designing database schemas, or optimizing application performance.

Backend
40163

patent-search

by RobThePCGuy

Advanced prior art search using the PatentsView API. Use this skill when users need to search for patents, perform prior art searches, analyze patent landscapes, or find patents by inventor, title, date range, or technical fields. Helps with patent research, freedom to operate

Backend
36218

clickup

by civitai

Interact with ClickUp tasks and documents - get task details, view comments, create and manage tasks, create and edit docs. Use when working with ClickUp task/doc URLs or IDs.

Backend
2483

stripe-integration

by wshobson

Implement Stripe payment processing for robust, PCI-compliant payment flows including checkout, subscriptions, and webhooks. Use when integrating Stripe payments, building subscription systems, or implementing secure checkout flows.

Backend
40147

using-superpowers

by obra

Use when starting any conversation - establishes mandatory workflows for finding and using skills, including using Skill tool before announcing usage, following brainstorming before coding, and creating TodoWrite todos for checklists

Backend
65167