High Python

uv project structure

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
View
FastAPI Guidelines
36 rules • 1 standard
View
Python Standards
33 rules • 2 standards
View
npm Standards
23 rules • 2 standards
View
pnpm Standards
23 rules • 3 standards
View
Yarn Standards
23 rules • 0 standards
View
Poetry Standards
23 rules • 0 standards
View
Bundler Standards
23 rules • 1 standard
View
Maven Standards
23 rules • 0 standards
View
Gradle Standards
23 rules • 2 standards
View
Cargo Standards
23 rules • 2 standards
View
Composer Standards
23 rules • 1 standard
View
pip Standards
23 rules • 0 standards
View
uv Standards
25 rules • 2 standards
View
Code Review Standards
58 rules • 0 standards
View

Add This Rule

Sign in to add this rule to your workspace

Sign in with GitHub

Details

Severity
High
Category
Python
Used in
15 rulesets