GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - ofershap/python-best-practices: Modern Python 3.12+ patterns. Type hints, async/await, Pydantic v2, uv package manager, match statements.

BranchesTags
Open more actions menu

Latest commit

 

History

7 Commits
7 Commits

Folders and files

NameName
Last commit message
Last commit date
.claude-plugin
.claude-plugin
 
 
.cursor-plugin
.cursor-plugin
 
 
.github
.github
 
 
commands
commands
 
 
rules
rules
 
 
scripts
scripts
 
 
skills/python-best-practices
skills/python-best-practices
 
 
.gitignore
.gitignore
 
 
.prettierrc
.prettierrc
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
package-lock.json
package-lock.json
 
 
package.json
package.json
 
 

Repository files navigation

Python Best Practices

License: MIT Skills

Modern Python 3.12+ patterns your AI agent should use. Type hints with X | Y syntax, Pydantic v2, uv package manager, match statements, pathlib, pyproject.toml, TaskGroup, and PEP 695 generics.

AI coding assistants generate from typing import List, Union, Optional, use Pydantic v1 decorators, create setup.py, and reach for os.path instead of pathlib. This plugin keeps your agent on Python 3.12+ patterns.

Install

Cursor / Claude Code / Windsurf

npx skills add ofershap/python-best-practices

Or copy skills/ into your .cursor/skills/ or .claude/skills/ directory.

What's Included

Type Name Description
Skill python-best-practices 15 rules for type hints, Pydantic v2, uv, pathlib, match/case, TaskGroup, and more
Rule best-practices Always-on behavioral rule that enforces Python 3.12+ patterns
Command /audit Scan your codebase for outdated Python patterns

What Agents Get Wrong

What the agent writes What Python 3.12+ uses
from typing import List, Union, Optional list[str], X | Y, X | None
@validator, @root_validator field_validator, model_validator (Pydantic v2)
class Config: in Pydantic models model_config = ConfigDict(...)
os.path.join(), string paths pathlib.Path for all file operations
setup.py, requirements.txt pyproject.toml with uv
TypeVar("T") + Generic[T] def f[T](x: T) -> T (PEP 695)
asyncio.gather() TaskGroup for structured concurrency

Related Plugins

  • fastapi-best-practices - FastAPI async patterns, Depends(), project structure
  • typescript-best-practices - TypeScript 5.x strict patterns

If this helped your workflow, a star helps others find it.

Author

Made by ofershap

LinkedIn GitHub

License

MIT

About

Modern Python 3.12+ patterns. Type hints, async/await, Pydantic v2, uv package manager, match statements.

Topics

ai-agentbest-practicesclaude-codecursor-pluginpythontype-hints

Resources

Readme
MIT license
Activity

Stars

1 star

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.