view 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 source

# dev and build helper
# :-
# SPDX-FileCopyrightText: © 2026 Franz Glasner
# SPDX-License-Identifier: MIT
# :-

.PHONY: help all clean distclean dist build tests flake8

help:
	@echo Targets: help, clean, distclean, dist, build

all: tests flake8

build:
	python -m build

dist: distclean build

distclean: clean
	rm -rf dist/ *.egg-info

clean:
	rm -rf __arch/
	find . -name '*.pyc' -delete

tests:
	-python -m unittest discover -s tests

flake8:
	-flake8 pygments_lexer_pseudocode2
	-flake8 tests