forked from litestar-org/litestar
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
64 lines (49 loc) · 1.33 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
.PHONY: sourcery
sourcery:
poetry run sourcery review --fix .
.PHONY: docs-clean
docs-clean:
rm -rf docs/_build
.PHONY: docs-serve
docs-serve:
sphinx-autobuild docs docs/_build/ -j auto --watch litestar,examples
.PHONY: docs
docs: docs-clean
sphinx-build -M html docs docs/_build/ -a -j auto -W --keep-going
.PHONY: test-examples
test-examples:
pytest tests/examples
.PHONY: test-sqlalchemy-asyncpg
test-sqlalchemy-asyncpg:
pytest tests -m='sqlalchemy_asyncpg'
.PHONY: test-sqlalchemy-psycopg-async
test-sqlalchemy-psycopg-async:
pytest tests -m='sqlalchemy_psycopg_async'
.PHONY: test-sqlalchemy-psycopg-sync
test-sqlalchemy-psycopg-sync:
pytest tests -m='sqlalchemy_psycopg_sync'
.PHONY: test-sqlalchemy-asyncmy
test-sqlalchemy-asyncmy:
pytest tests -m='sqlalchemy_asyncmy'
.PHONY: test-sqlalchemy-oracledb
test-sqlalchemy-oracledb:
pytest tests -m='sqlalchemy_oracledb'
.PHONY: test-sqlalchemy-duckdb
test-sqlalchemy-duckdb:
pytest tests -m='sqlalchemy_duckdb'
.PHONY: test-sqlalchemy-spanner
test-sqlalchemy-spanner:
pytest tests -m='sqlalchemy_spanner'
.PHONY: test-sqlalchemy-integration
test-sqlalchemy-integration:
pytest tests -m='sqlalchemy_integration'
.PHONY: tests
test:
pytest tests -n auto
.PHONY: test-all
test-all:
pytest -m="" -n auto
.PHONY: coverage
coverage:
pytest tests --cov=litestar -n auto
coverage html