summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorMatthäus G. Chajdas <Anteru@users.noreply.github.com>2020-09-20 10:24:09 +0200
committerGitHub <noreply@github.com>2020-09-20 10:24:09 +0200
commit8aa2bc3d6c1bc65fbc6da9af8a588fcea3552e98 (patch)
tree7e51ff18fe940afc914aaa4326f4a9bb8fbdf5e6 /Makefile
parent45b3dc6891c6ece14e0ea5e017624fef36c6beea (diff)
downloadpygments-git-8aa2bc3d6c1bc65fbc6da9af8a588fcea3552e98.tar.gz
Add a check for CR/LF in files. (#1547)
* Add a check for CR/LF in files. This can occur when checking out things on Windows, and it breaks the tarball. This adds a script to check for the presence of CR/LF which exits early if anything gets found. * Improve error checking. * Include the external folder and check that. * Include .bashcomp files. * Use the correct CR/LF on the checker itself. * Address review feedback. * Remove || true * Fix docs * Print the first offending file name
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index e4625bcf..1f8c383d 100644
--- a/Makefile
+++ b/Makefile
@@ -19,6 +19,7 @@ export PYTHONPATH = $(shell echo "$$PYTHONPATH"):$(shell python -c 'import os; p
all: clean-pyc check test
check:
+ @$(PYTHON) scripts/check_crlf.py pygments build external
@$(PYTHON) scripts/detect_missing_analyse_text.py || true
@pyflakes pygments | grep -v 'but unused' || true
@$(PYTHON) scripts/check_sources.py -i build -i dist -i pygments/lexers/_mapping.py \