-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
41 lines (34 loc) · 919 Bytes
/
Makefile
File metadata and controls
41 lines (34 loc) · 919 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
37
38
39
40
41
# Makefile for hitlog_processing
.PHONY: format requirements lint test commit push
format:
ruff format .
requirements:
uv pip compile pyproject.toml --no-reuse-hashes --output-file=requirements.txt
lint:
ruff check . --exclude notebooks
test:
pytest
commit: format requirements lint test
@bash -c '{ \
set -e; \
git add .; \
read -p "Enter commit message: " msg; \
echo "DEBUG: Entered message: [$${msg}]"; \
if [ -z "$$(echo $${msg} | tr -d "[:space:]")" ]; then \
echo "Commit message cannot be blank or whitespace."; exit 1; \
fi; \
git commit -m "$${msg}"; \
git push; \
}'
push: lint test
@bash -c '{ \
set -e; \
git add .; \
read -p "Enter commit message: " msg; \
echo "DEBUG: Entered message: [$${msg}]"; \
if [ -z "$$(echo $${msg} | tr -d "[:space:]")" ]; then \
echo "Commit message cannot be blank or whitespace."; exit 1; \
fi; \
git commit -m "$${msg}"; \
git push; \
}'