forked from plume-lib/git-scripts
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
32 lines (22 loc) · 761 Bytes
/
Makefile
File metadata and controls
32 lines (22 loc) · 761 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
all: test check-style
test:
${MAKE} -C tests test
clean:
${MAKE} -C tests clean
check-style: check-python-style shell-script-style
PYTHON_FILES=$(wildcard *.py)
python-style:
ruff format ${PYTHON_FILES}
ruff check ${PYTHON_FILES} --fix
check-python-style:
ruff format ${PYTHON_FILES}
ruff check ${PYTHON_FILES} --fix
SH_SCRIPTS = $(shell grep -r -l '^\#!/bin/sh' * | grep -v .git | grep -v "~" | grep -v cronic-orig)
BASH_SCRIPTS = $(shell grep -r -l '^\#!/bin/bash' * | grep -v .git | grep -v "~" | grep -v cronic-orig)
shell-script-style:
shellcheck --format=gcc ${SH_SCRIPTS} ${BASH_SCRIPTS}
checkbashisms ${SH_SCRIPTS}
showvars:
@echo "PYTHON_FILES=${PYTHON_FILES}"
@echo "SH_SCRIPTS=${SH_SCRIPTS}"
@echo "BASH_SCRIPTS=${BASH_SCRIPTS}"