by sanjeed5
社区活跃度高,但项目维护停滞,安全机制缺失,适合有经验的用户。
该仓库未检测到 SKILL.md 文件,Skill 结构评分为 0。如需提高评分,请添加标准格式的 SKILL.md。
一个Python开发者想为项目生成Cursor规则文件,以规范使用uv管理依赖,避免团队误用pip。
请为我的Python项目生成一个Cursor规则文件,要求:1)强制使用uv代替pip;2)禁止创建requirements.txt;3)所有依赖添加必须通过uv add命令。
根据您的需求,已生成以下Cursor规则文件(python.mdc): --- description: Python dependency management with uv globs: alwaysApply: true --- # Python Dependency Management ## Package Installation - Use `uv add <package>` instead of `pip install <package>` - Use `uv add --dev <package>` for dev dependencies - Use `uv sync` to install all dependencies from pyproject.toml ## Running Scripts - Use `uv run script.py` instead of `python script.py` ## Requirements File - DO NOT create or modify requirements.txt - Manage dependencies via pyproject.toml or uv.lock ## Commands - `uv add <package>`: Add a dependency - `uv remove <package>`: Remove a dependency - `uv sync`: Sync environment - `uv lock`: Generate lock file ## Examples - `uv add requests` - `uv add --dev pytest` - `uv run main.py` This rule will be automatically applied to all Python files in your project.
评测数据可能已过期,建议管理员刷新
评测由 AI 结合 GitHub 公开数据生成,仅供参考。请以实际使用体验为准。
评测时间:2026/05/22 17:28