High
Python
uv project structure
Official
Rule Description
Standard uv project structure:
```
myproject/
├── pyproject.toml # Project config and dependencies
├── uv.lock # Locked dependencies (commit this!)
├── .python-version # Python version (e.g., "3.12")
├── src/
│ └── myproject/
│ ├── __init__.py
│ └── main.py
└── tests/
└── test_main.py
```
Key files:
- `pyproject.toml`: Define dependencies here, not requirements.txt
- `uv.lock`: Always commit - ensures reproducible builds
- `.python-version`: uv auto-installs the correct Python version
Included in Rulesets
Django Best Practices
36 rules • 1 standard
FastAPI Guidelines
36 rules • 1 standard
Python Standards
33 rules • 2 standards
npm Standards
23 rules • 2 standards
pnpm Standards
23 rules • 3 standards
Yarn Standards
23 rules • 0 standards
Poetry Standards
23 rules • 0 standards
Bundler Standards
23 rules • 1 standard
Maven Standards
23 rules • 0 standards
Gradle Standards
23 rules • 2 standards
Cargo Standards
23 rules • 2 standards
Composer Standards
23 rules • 1 standard
pip Standards
23 rules • 0 standards
uv Standards
25 rules • 2 standards
Code Review Standards
58 rules • 0 standards
Add This Rule
Sign in to add this rule to your workspace
Sign in with GitHubDetails
- Severity
- High
- Category
- Python
- Used in
- 15 rulesets