forked from eisop-plume-lib/plume-scripts
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
27 lines (19 loc) · 755 Bytes
/
Makefile
File metadata and controls
27 lines (19 loc) · 755 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
all: check-python-style shell-script-style test
test:
${MAKE} -C tests test
PYTHON_FILES=$(wildcard *.py)
python-style:
black ${PYTHON_FILES}
pylint -f parseable --disable=W,invalid-name ${PYTHON_FILES}
check-python-style:
black ${PYTHON_FILES} --check
pylint -f parseable --disable=W,invalid-name ${PYTHON_FILES}
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}"