-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
35 lines (30 loc) · 1.02 KB
/
Makefile
File metadata and controls
35 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
# SPDX-FileCopyrightText: 2025 Ethersecurity Inc.
#
# SPDX-License-Identifier: MPL-2.0
# Author: Shohei KAMON <cameong@stir.network>
# If the `COPYRIGHT_HOLDER` file exists and contains a string shorter than 50 characters,
# use it as the name of the copyright holder.
# If not, fall back to the default value: "Ethersecurity Inc."
copyright_holder ?= $(shell bash scripts/get_copyright.sh)
change_files ?= $(shell bash scripts/get_changed_files.sh)
install-dev:
poetry install
test:
pytest
lint-license:
reuse lint
annotate-SPD:
@echo "📎 Annotating files..."
reuse annotate --license MPL-2.0 --copyright "${copyright_holder}" ${change_files}
python scripts/add_author.py ${change_files}
pre-commit-refresh:
@echo "🧹 Cleaning pre-commit cache..."
pre-commit clean
@echo "🔄 Installing pre-commit hooks..."
pre-commit install --hook-type pre-commit
@echo "⬆️ Updating pre-commit hooks..."
pre-commit autoupdate
@echo "🚀 Running all pre-commit hooks..."
pre-commit run --all-files
build-pypi:
python -m build