StefanMermans

python-guidelines

When dealing with python code, these guidelines must always be followed.

StefanMermans 0 Updated 3mo ago
GitHub

Install

npx skillscat add stefanmermans/agent-config/python-guidelines

Install via the SkillsCat registry.

SKILL.md

Python Guidelines

Logging

When calling a logger by for example calling logger.infog(...) or logger.debug(...) etc..
always use lazy string formatting when interpolating variables for performance.

Bad example. Must avoid:

logging.error(f"Python version: {sys.version}")

Good example, use Lazy formatting

logging.error("Python version: %s", sys.version)