{"id":16934094,"url":"https://github.com/lucas-c/pre-commit-hooks-lxml","last_synced_at":"2025-04-11T18:51:50.447Z","repository":{"id":44458912,"uuid":"73076881","full_name":"Lucas-C/pre-commit-hooks-lxml","owner":"Lucas-C","description":"Some HTML validating hooks using lxml for pre-commit","archived":false,"fork":false,"pushed_at":"2021-11-02T14:57:25.000Z","size":19,"stargazers_count":5,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-25T14:44:45.729Z","etag":null,"topics":["css","git-hooks","html","lxml","pre-commit"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Lucas-C.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-11-07T12:37:11.000Z","updated_at":"2022-07-11T09:41:49.000Z","dependencies_parsed_at":"2022-08-30T02:30:58.469Z","dependency_job_id":null,"html_url":"https://github.com/Lucas-C/pre-commit-hooks-lxml","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lucas-C%2Fpre-commit-hooks-lxml","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lucas-C%2Fpre-commit-hooks-lxml/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lucas-C%2Fpre-commit-hooks-lxml/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lucas-C%2Fpre-commit-hooks-lxml/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Lucas-C","download_url":"https://codeload.github.com/Lucas-C/pre-commit-hooks-lxml/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248464290,"owners_count":21108238,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["css","git-hooks","html","lxml","pre-commit"],"created_at":"2024-10-13T20:51:17.636Z","updated_at":"2025-04-11T18:51:50.423Z","avatar_url":"https://github.com/Lucas-C.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![](https://travis-ci.org/Lucas-C/pre-commit-hooks-lxml.svg?branch=master)](https://travis-ci.org/Lucas-C/pre-commit-hooks-lxml)\n[![Known Vulnerabilities](https://snyk.io/test/github/lucas-c/pre-commit-hooks-lxml/badge.svg)](https://snyk.io/test/github/lucas-c/pre-commit-hooks-lxml)\n\nUseful [pre-commit](http://pre-commit.com) hooks to check your CSS / HTML pages / templates.\n\n\n## Usage\n\n```\n-   repo: https://github.com/Lucas-C/pre-commit-hooks-lxml\n    sha: v1.1.0\n    hooks:\n    -   id: forbid-html-img-without-alt-text\n    -   id: forbid-non-std-html-attributes\n    -   id: detect-missing-css-classes\n        args:\n        - --css-files-dir\n        - .\n        - --html-files-dir\n        - .\n    -   id: html-tags-blacklist\n    -   id: html-attributes-blacklist\n```\n\n### [FR] Accessibilité RGAA\n\nLes hooks `html-tags-blacklist` \u0026 `html-attributes-blacklist` sont configurés par défaut pour interdire les élements et attributs nuisant à l'accessibilité,\nselon les recommendations d'[Access42](https://access42.net).\n\ncf. [issue #2](https://github.com/Lucas-C/pre-commit-hooks-lxml/issues/2)\n\n\n## Dependencies needed to use lxml\n\nUnder [Cygwin](//www.cygwin.com), with [apt-cyg](//github.com/transcode-open/apt-cyg):\n\n    apt-cyg install git python3 gcc-g++ python3-devel libxml2-devel libxslt-devel\n\nWith [MSYS2](//msys2.github.io) :\n\n    pacman -S git python3 gcc python3-devel libxml2-devel libxslt-devel tar\n\nThe package names must be very similar under Linux.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flucas-c%2Fpre-commit-hooks-lxml","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flucas-c%2Fpre-commit-hooks-lxml","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flucas-c%2Fpre-commit-hooks-lxml/lists"}