diff Makefile @ 16:b92f660f2461

Begin a test infrastructure: using unittest and flake8. Need a requirements-dev.txt now also.
author Franz Glasner <fzglas.hg@dom66.de>
date Mon, 20 Apr 2026 13:31:42 +0200
parents db0171f62e5a
children 742496328de6
line wrap: on
line diff
--- a/Makefile	Mon Apr 20 09:06:51 2026 +0200
+++ b/Makefile	Mon Apr 20 13:31:42 2026 +0200
@@ -4,11 +4,13 @@
 # SPDX-License-Identifier: MIT
 # :-
 
-.PHONY: help clean distclean dist build
+.PHONY: help all clean distclean dist build tests flake8
 
 help:
 	@echo Targets: help, clean, distclean, dist, build
 
+all: tests flake8
+
 build:
 	python -m build
 
@@ -20,3 +22,10 @@
 clean:
 	rm -rf __arch/
 	find . -name '*.pyc' -delete
+
+tests:
+	-python -m unittest discover -s tests
+
+flake8:
+	-flake8 pygments_lexer_pseudocode2
+	-flake8 tests