forked from zmievsa/cadwyn
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
36 lines (29 loc) · 741 Bytes
/
Makefile
File metadata and controls
36 lines (29 loc) · 741 Bytes
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
SHELL := /bin/bash
py_warn = PYTHONDEVMODE=1
ifndef FAIL_UNDER
export FAIL_UNDER=80
endif
install:
poetry install --all-extras
lint:
pre-commit run --all-files
format:
poetry run ruff . --fix && poetry run ruff format .;
test:
poetry run pytest tests \
--cov=. \
--cov-report=term-missing:skip-covered \
--cov-branch \
--cov-append \
--cov-report=xml \
--cov-fail-under=${FAIL_UNDER};
ci_supertest:
poetry run pip install 'pydantic==1.10.13' && \
make test && \
poetry run pip install 'pydantic==2.5.3' && \
make test FAIL_UNDER=100;
supertest:
poetry install --all-extras
make ci_supertest || rm coverage.xml .coverage && exit 1; \
poetry run pip install 'pydantic==2.5.3' && \
rm coverage.xml .coverage;