-
Notifications
You must be signed in to change notification settings - Fork 47
/
Makefile
38 lines (29 loc) · 939 Bytes
/
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
# ---------------------------------------------------------
# Lint targets
# ---------------------------------------------------------
.PHONY: lint
lint:
black . --diff --check
flake8
ruff check
.PHONY: lint/format/black
lint/format/black:
black .
# ---------------------------------------------------------
# Test targets
# ---------------------------------------------------------
.PHONY: test
test: lint test/unit test/functional
@echo "ALL MAKE TARGET TESTS SUCCESSFUL"
.PHONY: test/unit
test/unit:
pytest tests/unit --cov=galaxy_importer --cov-config=pyproject.toml --cov-report xml:coverage.xml
.PHONY: test/unit/annotate
test/unit/annotate:
pytest tests/unit --cov=galaxy_importer --cov-config=pyproject.toml --cov-report annotate
.PHONY: test/unit/annotate/clean
test/unit/annotate/clean:
find galaxy_importer -type f -name '*,cover' -delete
.PHONY: test/integration
test/integration:
pytest tests/integration -v