Curlylint Versions Save

Experimental HTML templates linting for Jinja, Nunjucks, Django templates, Twig, Liquid

v0.13.1

2 years ago

v0.13.1 2022-03-30

Fixed

v0.13.0

3 years ago

v0.13.0 2021-04-24

This release comes with a blog post! Read on Quality-of-life improvements.

Added

  • Implement --template-tags CLI flag (#25, #77).

Changed

  • Add more descriptive error message for missing whitespace between HTML attributes (#23 (comment), #68).
  • Move development dependencies from extras to separate requirements.txt (#68).
  • Declare support for Python 3.9.
  • Tentatively declare support for Python 3.10 (tested with Python 3.10.0a6+).

Fixed

  • Fix Python 3.10 deprecation warning by importing Iterable from collections.abc (#68).

v0.12.2

3 years ago

v0.12.2 2021-03-06

Fixed

  • The image_alt rule no longer crashes when encountering template conditionals in img attributes (#57). Thanks to @adrien-delhorme.

v0.12.1

3 years ago

v0.12.1 2021-03-06

Fixed

  • The project’s sdist now includes all needed files to run the test suite (#49, #50). Thanks to @jayvdb.

v0.12.0

3 years ago

v0.12.0 2020-07-26

Release notes from the blog: Accessibility linting rules

Added

  • Add experimental django_forms_rendering rule.
  • Add experimental image_alt rule.
  • Add experimental no_autofocus rule.
  • Add experimental tabindex_no_positive rule.
  • Add experimental meta_viewport rule.

Changed

  • Support parsing HTML elements with UPPERCASE or camelCase tag names, for example clipPath.

v0.11.0

3 years ago

v0.11.0 2020-05-21

Added

  • Add helpful error message when curlylint can’t find any configuration with --print-config.

Changed

  • Fix --print-config flag running linting when no config is found for the given file.
  • Clarify error message for invalid --rule declarations.
  • Publish package with Python wheels as well as egg.

Fixed

  • Fix html_has_lang not raising an error when the HTML element has no lang but has other attributes.

v0.10.0

3 years ago

v0.10.0 2020-05-21

Added

  • Add --print-config CLI flag to print the configuration for the given file.
  • Add experimental html_has_lang rule.
  • Add experimental aria_role rule.

Changed

  • Show a warning when attempting to use a rule that does not exist.
  • Rename parse-error errors to parse_error.

Fixed

  • Fix parsing failing for self-closing SVG elements, e.g. <path />.

v0.9.0

4 years ago

v0.9.0 2020-05-14

Added

  • Add support for configuring and disabling individual rules via configuration file, under [tool.curlylint.rules].
  • Add support for tabs as indentation, with indent = 'tab'.
  • Add a way to configure rules via CLI parameters, with --rule: curlylint --rule 'indent: 2' template-directory/.
  • Support piping template contents from stdin with "-" as the file path.
  • Publish curlylint as typed with a py.typed file and Typing :: Typed classifier.
  • Add --stdin-filepath CLI flag to provide a pretend path when linting standard input.

Changed

  • Indentation is now enforced via the rules configuration, e.g. indent = 4 underneath [tool.curlylint.rules], instead of a top-level indent-size configuration.

v0.8.0

4 years ago

v0.8.0 2020-05-04

Added

  • Add support for configurable formatters with --format CLI parameter / format config attribute.
  • Add support for JSON formatting with --format json --quiet.
  • Add new stylish reporter and make it the default. compact is still available via --format compact.
  • Add codes for rules – indent and parse-error for the two existing checks.

v0.6.0

4 years ago

v0.6.0 2020-03-30

Changed

  • Open attrs dependency from attrs==17.2.0 to attrs>=17.2.0.
  • Support parsing attributes with uppercase letters (e.g. viewBox).