From 63b040547268ce1bcbf9cdecf1d835edcd908390 Mon Sep 17 00:00:00 2001 From: Lucas Cimon Date: Thu, 30 Nov 2017 02:44:55 +0100 Subject: [PATCH] Disabling validate-html hook that was crashing --- .gitignore | 6 ++---- .pre-commit-config.yaml | 24 ++---------------------- test_ludochaordic.sh | 2 +- 3 files changed, 5 insertions(+), 27 deletions(-) diff --git a/.gitignore b/.gitignore index a490bf8..1ed6d70 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,2 @@ -*.swp -*.pyc -.sass-cache -.ropeproject \ No newline at end of file +/node_modules +*~~ \ No newline at end of file diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 3e9c594..209434b 100755 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,36 +1,16 @@ - repo: git://github.com/pre-commit/pre-commit-hooks - sha: v0.9.1 + sha: v1.1.1 hooks: - id: check-merge-conflict - id: trailing-whitespace args: - --no-markdown-linebreak-ext - repo: git://github.com/Lucas-C/pre-commit-hooks - sha: v1.0.1 + sha: v1.1.4 hooks: - id: remove-crlf exclude: npp/.*\.xml - id: remove-tabs -- repo: https://github.com/Lucas-C/pre-commit-hooks-html - sha: v1.3.5 - hooks: - - id: validate-html - args: - - --remove-mustaches - - --mustache-remover=jinja2 - - --mustache-remover-env - - SUPPORTS - - "[('name', 'link', 'logo_url', 'title')]" - - --templates-include-dir=templates - - "--ignore=Expected \"\"" - - "--ignore=Element \"title\" must not be empty" - - "--ignore=Element \"head\" is missing a required instance of child element \"title\"" - - "--ignore=The \"itemprop\" attribute was specified, but the element is not a property of any item" - - "--ignore=Bad value \"DUMMY\" for attribute \"datetime\"" - - "--ignore=Bad value \"DUMMY\" for attribute \"lang\" on element \"html\"" - - "--ignore=Bad value \"DUMMY\" for attribute \"type\" on element \"link\": Subtype missing" - files: ^templates/[^/]*\.html$ - exclude: ^templates/(index|tipue_search)\.html$ - repo: local hooks: - id: eslint diff --git a/test_ludochaordic.sh b/test_ludochaordic.sh index fd6b528..5f8652d 100755 --- a/test_ludochaordic.sh +++ b/test_ludochaordic.sh @@ -11,7 +11,7 @@ git clone https://github.com/Lucas-C/ludochaordic.git cd ludochaordic pip install pelican markdown beautifulsoup4 pillow -make DEBUG=1 OUTPUTDIR=output devserver +make DEBUG=1 OUTPUTDIR=output html csslint --ignore=order-alphabetical output/theme/css/main.css