File tree Expand file tree Collapse file tree 1 file changed +10
-16
lines changed Expand file tree Collapse file tree 1 file changed +10
-16
lines changed Original file line number Diff line number Diff line change @@ -3,41 +3,35 @@ sources = pydantic_settings tests
33
44.PHONY : install
55install :
6- python -m pip install -U pip
7- pip install -r requirements/all.txt
8- pip install -e .
6+ uv sync --all-extras --all-groups
97
108.PHONY : refresh-lockfiles
119refresh-lockfiles :
12- @echo " Updating requirements/*.txt files using pip-compile"
13- find requirements/ -name ' *.txt' ! -name ' all.txt' -type f -delete
14- pip-compile -q --no-emit-index-url --resolver backtracking -o requirements/linting.txt requirements/linting.in
15- pip-compile -q --no-emit-index-url --resolver backtracking -o requirements/testing.txt requirements/testing.in
16- pip-compile -q --no-emit-index-url --resolver backtracking --extra toml --extra yaml --extra azure-key-vault -o requirements/pyproject.txt pyproject.toml
17- pip install --dry-run -r requirements/all.txt
10+ @echo " Updating uv.lock file"
11+ uv lock -U
1812
1913.PHONY : format
2014format :
21- ruff check --fix $(sources )
22- ruff format $(sources )
15+ uv run ruff check --fix $(sources )
16+ uv run ruff format $(sources )
2317
2418.PHONY : lint
2519lint :
26- ruff check $(sources )
27- ruff format --check $(sources )
20+ uv run ruff check $(sources )
21+ uv run ruff format --check $(sources )
2822
2923.PHONY : mypy
3024mypy :
31- mypy pydantic_settings
25+ uv run mypy pydantic_settings
3226
3327.PHONY : test
3428test :
35- coverage run -m pytest --durations=10
29+ uv run coverage run -m pytest --durations=10
3630
3731.PHONY : testcov
3832testcov : test
3933 @echo " building coverage html"
40- @coverage html
34+ @uv run coverage html
4135
4236.PHONY : all
4337all : lint mypy testcov
You can’t perform that action at this time.
0 commit comments