@@ -21,25 +21,25 @@ help:
2121 @echo " lint Auto-formats the code and check type hints"
2222
2323up :
24- @ uv lock --upgrade
24+ uv lock --upgrade
2525
2626deps :
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
2929deps_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
3232check : build _check
3333_check :
34- ruff format --check $(checkfiles ) || (echo " Please run 'make style' to auto-fix style issues" && false)
35- 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
3939style : deps _style
4040_style :
41- ruff format $(checkfiles )
42- ruff check --fix $(checkfiles )
41+ uv run --frozen ruff format $(checkfiles )
42+ uv run --frozen ruff check --fix $(checkfiles )
4343
4444lint : build _lint
4545_lint :
@@ -48,30 +48,30 @@ _lint:
4848
4949codeqc : build _codeqc
5050_codeqc :
51- mypy $(checkfiles )
52- bandit -c pyproject.toml -r $(checkfiles )
53- 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
5555test : deps
56- $(py_warn ) TORTOISE_TEST_DB=sqlite://:memory: pytest $(pytest_opts )
56+ $(py_warn ) TORTOISE_TEST_DB=sqlite://:memory: uv run --frozen pytest $(pytest_opts )
5757
5858test_sqlite :
59- $(py_warn ) TORTOISE_TEST_DB=sqlite://:memory: pytest --cov-report= $(pytest_opts )
59+ $(py_warn ) TORTOISE_TEST_DB=sqlite://:memory: uv run --frozen pytest --cov-report= $(pytest_opts )
6060
6161test_sqlite_regexp :
62- $(py_warn ) TORTOISE_TEST_DB=sqlite://:memory:? install_regexp_functions=True 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
6464test_postgres_asyncpg :
65- python -V | grep PyPy || $(py_warn ) TORTOISE_TEST_DB=" asyncpg://postgres:$( TORTOISE_POSTGRES_PASS) @127.0.0.1:5432/test_\{\}" pytest $(pytest_opts ) --cov-report=
65+ uv run --frozen 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
6767test_postgres_psycopg :
68- python -V | grep PyPy || $(py_warn ) TORTOISE_TEST_DB=" psycopg://postgres:$( TORTOISE_POSTGRES_PASS) @127.0.0.1:5432/test_\{\}" pytest $(pytest_opts ) --cov-report=
68+ uv run --frozen 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
7070test_mysql_myisam :
71- $(py_warn ) TORTOISE_TEST_DB=" mysql://root:$( TORTOISE_MYSQL_PASS) @127.0.0.1:3306/test_\{\}?storage_engine=MYISAM" 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
7373test_mysql :
74- $(py_warn ) TORTOISE_TEST_DB=" mysql://root:$( TORTOISE_MYSQL_PASS) @127.0.0.1:3306/test_\{\}" 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
7676test_mysql_asyncmy :
7777 $(MAKE ) deps_with_asyncmy
@@ -80,26 +80,26 @@ test_mysql_asyncmy:
8080 $(MAKE ) deps
8181
8282test_mssql :
83- $(py_warn ) TORTOISE_TEST_DB=" mssql://sa:$( TORTOISE_MSSQL_PASS) @127.0.0.1:1433/test_\{\}?driver=$( TORTOISE_MSSQL_DRIVER) &TrustServerCertificate=YES" 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
8585test_oracle :
86- $(py_warn ) TORTOISE_TEST_DB=" oracle://SYSTEM:$( TORTOISE_ORACLE_PASS) @127.0.0.1:1521/test_\{\}?driver=$( TORTOISE_ORACLE_DRIVER) " 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- coverage report
90+ uv run --frozen coverage report
9191
9292testall : deps _testall
9393
9494ci : check _testall
9595
9696docs : deps
9797 rm -fR ./build
98- sphinx-build -M html docs build
98+ uv run --frozen sphinx-build -M html docs build
9999
100100build : deps
101101 rm -fR dist/
102102 uv build
103103
104104publish : deps _build
105- twine upload dist/*
105+ uv run --frozen twine upload dist/*
0 commit comments