Skip to content

Commit cf2f39a

Browse files
committed
Update Makefile
1 parent 2b5e25d commit cf2f39a

File tree

1 file changed

+10
-16
lines changed

1 file changed

+10
-16
lines changed

Makefile

Lines changed: 10 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -3,41 +3,35 @@ sources = pydantic_settings tests
33

44
.PHONY: install
55
install:
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
119
refresh-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
2014
format:
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
2519
lint:
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
3024
mypy:
31-
mypy pydantic_settings
25+
uv run mypy pydantic_settings
3226

3327
.PHONY: test
3428
test:
35-
coverage run -m pytest --durations=10
29+
uv run coverage run -m pytest --durations=10
3630

3731
.PHONY: testcov
3832
testcov: test
3933
@echo "building coverage html"
40-
@coverage html
34+
@uv run coverage html
4135

4236
.PHONY: all
4337
all: lint mypy testcov

0 commit comments

Comments
 (0)