view Makefile @ 160:b4028838e0c8

Implement lexer option "prohibit_raiseonerror_filter". Sphinx raises by default when an Error token is seen (by means of the "raiseonerror" filter that is applied by default to lexers in Sphinx). This option skips this and allows error locations to be seen and highlighted properly. While there convert most Generic.Error tokens to Error tokens because now they can be handled by a lexer with "prohibit_raiseonerror_filter=True".
author Franz Glasner <fzglas.hg@dom66.de>
date Fri, 08 May 2026 17:46:28 +0200
parents 6ac1ea5d2d4a
children ddefcc20367c
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 docs clean-docs clean-docs-html install-dev install-docs

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

docs:
	(cd docs && make html)

clean-docs:
	(cd docs && make clean)

clean-docs-html:
	rm -rf docs/_build/html

install-dev:
	python -m pip install -r requirements-dev.txt

install-docs:
	python -m pip install -r requirements-docs.txt
	python -m pip install --editable .