forked from simpeg/simpeg
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakefile
More file actions
38 lines (29 loc) · 909 Bytes
/
Makefile
File metadata and controls
38 lines (29 loc) · 909 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
STYLE_CHECK_FILES = simpeg examples tutorials tests
GITHUB_ACTIONS=.github/workflows
.PHONY: help docs clean check black flake flake-all check-actions
help:
@echo "Commands:"
@echo ""
@echo " check run code style and quality checks (black and flake8)"
@echo " black checks code style with black"
@echo " flake checks code style with flake8"
@echo " flake-all checks code style with flake8 (full set of rules)"
@echo " check-actions lint GitHub Actions workflows (with zizmor)"
@echo ""
docs:
cd docs;make html
clean:
cd docs;make clean
find . -name "*.pyc" | xargs -I {} rm -v "{}"
check: black flake
black:
black --version
black --check ${STYLE_CHECK_FILES}
flake:
flake8 --version
flake8 ${FLAKE8_OPTS} ${STYLE_CHECK_FILES}
flake-all:
flake8 --version
flake8 ${FLAKE8_OPTS} --ignore "" ${STYLE_CHECK_FILES}
check-actions:
zizmor ${GITHUB_ACTIONS}