aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJ08nY2021-04-10 17:50:05 +0200
committerJ08nY2021-04-10 17:50:05 +0200
commitb76ec0890e4cf997ce5a0b4494722931094683f7 (patch)
tree2dc049de8a79adc7b3b23d746ef4f28d58e33fbc /Makefile
parenta7ad11f7cd917be55dbd036a516fefda4d19dd4a (diff)
downloadpyecsca-b76ec0890e4cf997ce5a0b4494722931094683f7.tar.gz
pyecsca-b76ec0890e4cf997ce5a0b4494722931094683f7.tar.zst
pyecsca-b76ec0890e4cf997ce5a0b4494722931094683f7.zip
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile30
1 files changed, 27 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 9acd9c6..326e80e 100644
--- a/Makefile
+++ b/Makefile
@@ -25,10 +25,16 @@ typecheck-all:
mypy pyecsca test --ignore-missing-imports --show-error-codes
codestyle:
- flake8 --ignore=E501,F405,F403,F401,E126 pyecsca
+ flake8 --extend-ignore=E501,F405,F403,F401,E126,E203 pyecsca
codestyle-all:
- flake8 --ignore=E501,F405,F403,F401,E126 pyecsca test
+ flake8 --extend-ignore=E501,F405,F403,F401,E126,E203 pyecsca test
+
+black:
+ black pyecsca
+
+black-all:
+ black pyecsca test
perf: ${PERF_SCRIPTS}
mkdir -p .perf
@@ -41,4 +47,22 @@ docs:
$(MAKE) -C docs apidoc
$(MAKE) -C docs html
-.PHONY: test test-plots test-all typecheck typecheck-all codestyle codestyle-all perf doc-coverage docs
+help:
+ @echo "pyecsca, Python Elliptic Curve cryptography Side-Channel Analysis toolkit."
+ @echo
+ @echo "Available targets:"
+ @echo " - test: Test pyecsca."
+ @echo " - test-plots: Test pyecsca and produce debugging plots."
+ @echo " - test-all: Test pyecsca but also run slow (and disabled) tests."
+ @echo " - typecheck: Use mypy to verify the use of types in pyecsca."
+ @echo " - typecheck-all: Use mypy to verify the use of types in pyecsca and in tests."
+ @echo " - codestyle: Use flake8 to check codestyle in pyecsca."
+ @echo " - codestyle-all: Use flake8 to check codestyle in pyecsca and in tests."
+ @echo " - black: Run black on pyecsca sources (will transform them inplace)."
+ @echo " - black-all: Run black on pyecsca sources and tests (will transform them inplace)."
+ @echo " - perf: Run performance measurements (prints results and stores them in .perf/)."
+ @echo " - doc-coverage: Use interrogate to check documentation coverage of public API."
+ @echo " - docs: Build docs using sphinx."
+ @echo " - help: Show this help."
+
+.PHONY: test test-plots test-all typecheck typecheck-all codestyle codestyle-all black black-all perf doc-coverage docs