Skip to content

Commit b8fb851

Browse files
appleboyclaude
andcommitted
chore: switch project management from pip to uv
Replace pip/python commands with uv run in Makefile targets. uv handles venv creation, dependency resolution, and lockfile (uv.lock) automatically so no manual venv activation is needed. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 28a3287 commit b8fb851

3 files changed

Lines changed: 1239 additions & 9 deletions

File tree

CLAUDE.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,15 @@ Package: `authgate` (Python 3.10+, src layout with hatchling build)
1111
## Common Commands
1212

1313
```bash
14-
make install # Install in editable mode with dev deps
14+
make install # uv sync --all-extras (install all deps)
1515
make test # Run all tests with pytest
1616
make lint # Run ruff linter
1717
make fmt # Format code with ruff
1818
make typecheck # Run mypy strict
1919
```
2020

21+
Project is managed with [uv](https://docs.astral.sh/uv/). All `make` targets use `uv run` so no manual venv activation is needed.
22+
2123
## Code Style
2224

2325
- ruff for linting and formatting (line length 100)

Makefile

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,24 @@
11
.PHONY: test lint fmt typecheck install clean
22

33
install:
4-
pip install -e ".[dev]"
4+
uv sync --all-extras
55

66
test:
7-
python -m pytest tests/ -v --tb=short
7+
uv run pytest tests/ -v --tb=short
88

99
coverage:
10-
python -m coverage run -m pytest tests/ -v --tb=short
11-
python -m coverage report -m
10+
uv run coverage run -m pytest tests/ -v --tb=short
11+
uv run coverage report -m
1212

1313
lint:
14-
python -m ruff check src/ tests/
14+
uv run ruff check src/ tests/
1515

1616
fmt:
17-
python -m ruff format src/ tests/
18-
python -m ruff check --fix src/ tests/
17+
uv run ruff format src/ tests/
18+
uv run ruff check --fix src/ tests/
1919

2020
typecheck:
21-
python -m mypy src/authgate/
21+
uv run mypy src/authgate/
2222

2323
clean:
2424
rm -rf build/ dist/ *.egg-info src/*.egg-info .mypy_cache .pytest_cache .ruff_cache .coverage htmlcov/

0 commit comments

Comments
 (0)