-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
33 lines (24 loc) · 821 Bytes
/
Makefile
File metadata and controls
33 lines (24 loc) · 821 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
ifndef SOURCE_FILES
export SOURCE_FILES:=confluence
endif
ifndef TEST_FILES
export TEST_FILES:=tests
endif
.PHONY: format lint test docs publish
format:
poetry run ruff format ${SOURCE_FILES} ${TEST_FILES}
poetry run ruff check ${SOURCE_FILES} ${TEST_FILES} --fix-only --exit-zero
lint:
poetry run ruff check ${SOURCE_FILES} ${TEST_FILES}
poetry run mypy ${SOURCE_FILES}
test:
# 並列実行してレポートも出力する
poetry run pytest -n auto --cov=kci --cov-report=html tests
docs:
cd docs && poetry run make html
# publish:
# # public PyPIにデプロイ
# poetry publish --build
# # 社内PyPIにデプロイ
# # 事前に`$ poetry config repositories.kci-upload https://kurusugawa.jp/nexus3/repository/KRS-pypi/ `を実行すること
# poetry publish --repository kci-upload --build