-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
43 lines (30 loc) · 1.02 KB
/
Makefile
File metadata and controls
43 lines (30 loc) · 1.02 KB
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
# SPDX-FileCopyrightText: 2026 Daniel Balparda <balparda@github.com>
# SPDX-License-Identifier: Apache-2.0
.PHONY: install fmt lint type test integration cov flakes precommit docs req ci
install:
poetry install
fmt:
poetry run ruff format .
lint:
poetry run ruff check .
type:
poetry run mypy src tests tests_integration
test:
poetry run pytest -q tests
integration:
poetry run pytest -q tests_integration
cov:
poetry run pytest --typeguard-packages=transcrypto --cov=src --cov-report=term-missing -q tests
flakes:
poetry run pytest --flake-finder --flake-runs=100 -q tests
precommit:
poetry run pre-commit run --all-files
docs:
@echo "Generating transcrypto.md & safetrans.md & profiler.md"
poetry run transcrypto markdown > transcrypto.md
poetry run safetrans markdown > safetrans.md
poetry run profiler markdown > profiler.md
req:
poetry export --format requirements.txt --without-hashes --output requirements.txt
ci: cov integration precommit docs req
@echo "CI checks passed! Generated docs & requirements.txt."