skills/python/SKILL.md
Always use this skill when writing or editing python code!
npx skillsauth add cardoso-neto/personal-ai-infra pythonInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
uv tool install ruff if not already installed.| over Union[] and | None over Optional.__future__, just use the latest Python features and require a modern Python version.logging in libraries; leave that to the application using the library.@validator decorators.
number: Annotated[int, AfterValidator(is_even)]from ..schemas import ...).pyproject.toml, requirements.txt, or equivalent.uv pip install -e ./path.
UPPER_SNAKE_CASE for constants and regex patternslog = logging.getLogger(__name__)unit unless explicitly @pytest.mark.integration.Never do this:
var1 = 1
my_other_var = 2
Always prefer accessing attributes directly over something like this:
def get_my_items(self) -> list[MyItem]:
return self.my_items
development
Always use this skill when writing or editing webscrapers!
testing
Use this skill when working with software installed or run from local source checkouts that use git worktree hubs.
testing
Always use this skill when writing or editing software tests!
development
Always use this skill when writing or editing code of any sort!