Mercurial > hgrepos > Python > libs > pygments-lexer-pseudocode2
comparison 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 |
comparison
equal
deleted
inserted
replaced
| 15:db0171f62e5a | 16:b92f660f2461 |
|---|---|
| 2 # :- | 2 # :- |
| 3 # SPDX-FileCopyrightText: © 2026 Franz Glasner | 3 # SPDX-FileCopyrightText: © 2026 Franz Glasner |
| 4 # SPDX-License-Identifier: MIT | 4 # SPDX-License-Identifier: MIT |
| 5 # :- | 5 # :- |
| 6 | 6 |
| 7 .PHONY: help clean distclean dist build | 7 .PHONY: help all clean distclean dist build tests flake8 |
| 8 | 8 |
| 9 help: | 9 help: |
| 10 @echo Targets: help, clean, distclean, dist, build | 10 @echo Targets: help, clean, distclean, dist, build |
| 11 | |
| 12 all: tests flake8 | |
| 11 | 13 |
| 12 build: | 14 build: |
| 13 python -m build | 15 python -m build |
| 14 | 16 |
| 15 dist: distclean build | 17 dist: distclean build |
| 18 rm -rf dist/ *.egg-info | 20 rm -rf dist/ *.egg-info |
| 19 | 21 |
| 20 clean: | 22 clean: |
| 21 rm -rf __arch/ | 23 rm -rf __arch/ |
| 22 find . -name '*.pyc' -delete | 24 find . -name '*.pyc' -delete |
| 25 | |
| 26 tests: | |
| 27 -python -m unittest discover -s tests | |
| 28 | |
| 29 flake8: | |
| 30 -flake8 pygments_lexer_pseudocode2 | |
| 31 -flake8 tests |
