From df781c2cc422e0f7c80f24736a0cd04159d375de Mon Sep 17 00:00:00 2001 From: "C.A.M. Gerlach" Date: Wed, 25 Sep 2024 00:14:29 -0500 Subject: [PATCH] Remove unmaintained and unused curlylint from linters --- .pre-commit-config.yaml | 10 ---------- pyproject.toml | 30 ------------------------------ 2 files changed, 40 deletions(-) delete mode 100644 pyproject.toml diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 2e701b2b..d5aebb82 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -121,16 +121,6 @@ repos: name: Format JavaScript (Prettier) types: [javascript] -# Lint Jinja -- repo: https://github.com/thibaudcolas/curlylint - rev: v0.13.1 - hooks: - - id: curlylint - name: Lint Jinja templates - types: [html, jinja, twig] - files: 'templates/' - require_serial: true - # Check JSON - repo: https://github.com/pre-commit/pre-commit-hooks rev: v4.6.0 diff --git a/pyproject.toml b/pyproject.toml deleted file mode 100644 index aff85537..00000000 --- a/pyproject.toml +++ /dev/null @@ -1,30 +0,0 @@ -[tool] - [tool.curlylint] - # include = '\.(html|jinja)$' - # exclude = ''' - - [tool.curlylint.rules] - # All role attributes must be valid. - # See https://www.curlylint.org/docs/rules/aria_role. - aria_role = true - # Forms cannot be rendered with as_table, as_ul, or as_p - # See https://www.curlylint.org/docs/rules/django_forms_rendering. - django_forms_rendering = true - # The `lang` attribute must be "en-US". - # See https://www.curlylint.org/docs/rules/html_has_lang. - html_has_lang = true - # The `alt` attribute must be present. - # See https://www.curlylint.org/docs/rules/image_alt. - image_alt = true - # Use 2 spaces for indent. - # See https://www.curlylint.org/docs/rules/indent. - # indent = 2 - # `user-scalable=no` must not be used, and `maximum-scale` should be 2 or above. - # See https://www.curlylint.org/docs/rules/meta_viewport. - meta_viewport = true - # The `autofocus` attribute must not be used. - # See https://www.curlylint.org/docs/rules/no_autofocus. - no_autofocus = true - # Avoid positive `tabindex` values, change the order of elements on the page instead. - # See https://www.curlylint.org/docs/rules/tabindex_no_positive. - tabindex_no_positive = true