Skip to content

Commit 1d86a20

Browse files
committed
Add --frozen to uv commands
1 parent 501b997 commit 1d86a20

File tree

1 file changed

+21
-21
lines changed

1 file changed

+21
-21
lines changed

Makefile

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -24,22 +24,22 @@ up:
2424
uv lock --upgrade
2525

2626
deps:
27-
uv sync --all-groups --extra asyncpg --extra accel --extra psycopg --extra asyncodbc --extra aiomysql $(options)
27+
uv sync --frozen --all-groups --extra asyncpg --extra accel --extra psycopg --extra asyncodbc --extra aiomysql $(options)
2828

2929
deps_with_asyncmy:
30-
uv sync --all-groups --extra asyncpg --extra accel --extra psycopg --extra asyncodbc --extra asyncmy $(options)
30+
uv sync --frozen --all-groups --extra asyncpg --extra accel --extra psycopg --extra asyncodbc --extra asyncmy $(options)
3131

3232
check: build _check
3333
_check:
34-
uv run ruff format --check $(checkfiles) || (echo "Please run 'make style' to auto-fix style issues" && false)
35-
uv run ruff check $(checkfiles)
34+
uv run --frozen ruff format --check $(checkfiles) || (echo "Please run 'make style' to auto-fix style issues" && false)
35+
uv run --frozen ruff check $(checkfiles)
3636
#pylint -d C,W,R $(checkfiles)
3737
$(MAKE) _codeqc
3838

3939
style: deps _style
4040
_style:
41-
uv run ruff format $(checkfiles)
42-
uv run ruff check --fix $(checkfiles)
41+
uv run --frozen ruff format $(checkfiles)
42+
uv run --frozen ruff check --fix $(checkfiles)
4343

4444
lint: build _lint
4545
_lint:
@@ -48,30 +48,30 @@ _lint:
4848

4949
codeqc: build _codeqc
5050
_codeqc:
51-
uv run mypy $(checkfiles)
52-
uv run bandit -c pyproject.toml -r $(checkfiles)
53-
uv run twine check dist/*
51+
uv run --frozen mypy $(checkfiles)
52+
uv run --frozen bandit -c pyproject.toml -r $(checkfiles)
53+
uv run --frozen twine check dist/*
5454

5555
test: deps
56-
$(py_warn) TORTOISE_TEST_DB=sqlite://:memory: uv run pytest $(pytest_opts)
56+
$(py_warn) TORTOISE_TEST_DB=sqlite://:memory: uv run --frozen pytest $(pytest_opts)
5757

5858
test_sqlite:
59-
$(py_warn) TORTOISE_TEST_DB=sqlite://:memory: uv run pytest --cov-report= $(pytest_opts)
59+
$(py_warn) TORTOISE_TEST_DB=sqlite://:memory: uv run --frozen pytest --cov-report= $(pytest_opts)
6060

6161
test_sqlite_regexp:
62-
$(py_warn) TORTOISE_TEST_DB=sqlite://:memory:?install_regexp_functions=True uv run pytest --cov-report= $(pytest_opts)
62+
$(py_warn) TORTOISE_TEST_DB=sqlite://:memory:?install_regexp_functions=True uv run --frozen pytest --cov-report= $(pytest_opts)
6363

6464
test_postgres_asyncpg:
65-
uv run python -V | grep PyPy || $(py_warn) TORTOISE_TEST_DB="asyncpg://postgres:$(TORTOISE_POSTGRES_PASS)@127.0.0.1:5432/test_\{\}" uv run pytest $(pytest_opts) --cov-report=
65+
uv run python -V | grep PyPy || $(py_warn) TORTOISE_TEST_DB="asyncpg://postgres:$(TORTOISE_POSTGRES_PASS)@127.0.0.1:5432/test_\{\}" uv run --frozen pytest $(pytest_opts) --cov-report=
6666

6767
test_postgres_psycopg:
68-
uv run python -V | grep PyPy || $(py_warn) TORTOISE_TEST_DB="psycopg://postgres:$(TORTOISE_POSTGRES_PASS)@127.0.0.1:5432/test_\{\}" uv run pytest $(pytest_opts) --cov-report=
68+
uv run python -V | grep PyPy || $(py_warn) TORTOISE_TEST_DB="psycopg://postgres:$(TORTOISE_POSTGRES_PASS)@127.0.0.1:5432/test_\{\}" uv run --frozen pytest $(pytest_opts) --cov-report=
6969

7070
test_mysql_myisam:
71-
$(py_warn) TORTOISE_TEST_DB="mysql://root:$(TORTOISE_MYSQL_PASS)@127.0.0.1:3306/test_\{\}?storage_engine=MYISAM" uv run pytest $(pytest_opts) --cov-report=
71+
$(py_warn) TORTOISE_TEST_DB="mysql://root:$(TORTOISE_MYSQL_PASS)@127.0.0.1:3306/test_\{\}?storage_engine=MYISAM" uv run --frozen pytest $(pytest_opts) --cov-report=
7272

7373
test_mysql:
74-
$(py_warn) TORTOISE_TEST_DB="mysql://root:$(TORTOISE_MYSQL_PASS)@127.0.0.1:3306/test_\{\}" uv run pytest $(pytest_opts) --cov-report=
74+
$(py_warn) TORTOISE_TEST_DB="mysql://root:$(TORTOISE_MYSQL_PASS)@127.0.0.1:3306/test_\{\}" uv run --frozen pytest $(pytest_opts) --cov-report=
7575

7676
test_mysql_asyncmy:
7777
$(MAKE) deps_with_asyncmy
@@ -80,26 +80,26 @@ test_mysql_asyncmy:
8080
$(MAKE) deps
8181

8282
test_mssql:
83-
$(py_warn) TORTOISE_TEST_DB="mssql://sa:$(TORTOISE_MSSQL_PASS)@127.0.0.1:1433/test_\{\}?driver=$(TORTOISE_MSSQL_DRIVER)&TrustServerCertificate=YES" uv run pytest $(pytest_opts) --cov-report=
83+
$(py_warn) TORTOISE_TEST_DB="mssql://sa:$(TORTOISE_MSSQL_PASS)@127.0.0.1:1433/test_\{\}?driver=$(TORTOISE_MSSQL_DRIVER)&TrustServerCertificate=YES" uv run --frozen pytest $(pytest_opts) --cov-report=
8484

8585
test_oracle:
86-
$(py_warn) TORTOISE_TEST_DB="oracle://SYSTEM:$(TORTOISE_ORACLE_PASS)@127.0.0.1:1521/test_\{\}?driver=$(TORTOISE_ORACLE_DRIVER)" uv run pytest $(pytest_opts) --cov-report=
86+
$(py_warn) TORTOISE_TEST_DB="oracle://SYSTEM:$(TORTOISE_ORACLE_PASS)@127.0.0.1:1521/test_\{\}?driver=$(TORTOISE_ORACLE_DRIVER)" uv run --frozen pytest $(pytest_opts) --cov-report=
8787

8888
_testall: test_sqlite test_postgres_asyncpg test_postgres_psycopg test_mysql_myisam test_mysql test_mysql_asyncmy test_mssql
8989

90-
uv run coverage report
90+
uv run --frozen coverage report
9191

9292
testall: deps _testall
9393

9494
ci: check _testall
9595

9696
docs: deps
9797
rm -fR ./build
98-
uv run sphinx-build -M html docs build
98+
uv run --frozen sphinx-build -M html docs build
9999

100100
build: deps
101101
rm -fR dist/
102102
uv build
103103

104104
publish: deps _build
105-
uv run twine upload dist/*
105+
uv run --frozen twine upload dist/*

0 commit comments

Comments
 (0)