Loading...
Loading...
Enforce Python code style: use uv, type hints, docstrings, and avoid print statements in production code.
npx skill4agent add wangxiaokangty/my-skill python-style-guideuvpippyproject.tomlrequirements.txtfrom __future__ import annotationsprint()loggingruffexcept:from __future__ import annotations
import logging
logger = logging.getLogger(__name__)
def add(a: int, b: int) -> int:
"""将两个整数相加。
Args:
a: 第一个整数
b: 第二个整数
Returns:
两数之和
"""
return a + bdef add(a, b):
print(f"adding {a} and {b}")
return a + b