Skip to main content

{{ 🎀}} Experimental HTML templates linting for Jinja, Nunjucks, Django templates, Twig, Liquid

Project description

curlylint

PyPI PyPI downloads Build status Total alerts

{{ 🎀}} Experimental HTML templates linting for Jinja, Nunjucks, Django templates, Twig, Liquid. Forked from jinjalint.

Features

Curlylint is an HTML linter for “curly braces” templates, and their HTML. It focuses on rules to check for common accessibility issues.

Screenshot of the curlylint CLI, with an example invocation raising a parsing issue and a rule error

On the roadmap:

  • More checks for common accessibility issues in HTML.
  • Checks for common security issues – for exameple rel="noopener noreferrer", or known sources of XSS vulnerabilities.
  • More ideas welcome!

Usage

Curlylint is available on PyPI, grab it and you can start linting:

# Assuming you’re using Python 3.6+,
pip install curlylint
# Now time to lint those templates!
curlylint template-directory/

Have a look at our documentation to make the most of it:

Contributing

See anything you like in here? Anything missing? We welcome all support, whether on bug reports, feature requests, code, design, reviews, tests, documentation, and more. Please have a look at our contribution guidelines.

If you just want to set up the project on your own computer, the contribution guidelines also contain all of the setup commands.

Credits

Started as a fork of jinjalint. Image credit: FxEmojis. Test templates extracted from third-party projects. Website hosted by Netlify.

View the full list of contributors. MIT licensed. Website content available as CC0.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

curlylint-0.12.1.tar.gz (30.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

curlylint-0.12.1-py3-none-any.whl (48.1 kB view details)

Uploaded Python 3

File details

Details for the file curlylint-0.12.1.tar.gz.

File metadata

  • Download URL: curlylint-0.12.1.tar.gz
  • Upload date:
  • Size: 30.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/54.1.0 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.6.11

File hashes

Hashes for curlylint-0.12.1.tar.gz
Algorithm Hash digest
SHA256 a7a39bba8bf7bebe191ffe9ad2cfc993226ddb326c28433a957d324e06fb2dcc
MD5 9a8a4cd35810b7d9c8bc0a284514f167
BLAKE2b-256 9996006e6daa6a0bf266327228300e06aa7c274ab6075727e1cab33d7119e828

See more details on using hashes here.

File details

Details for the file curlylint-0.12.1-py3-none-any.whl.

File metadata

  • Download URL: curlylint-0.12.1-py3-none-any.whl
  • Upload date:
  • Size: 48.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/54.1.0 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.6.11

File hashes

Hashes for curlylint-0.12.1-py3-none-any.whl
Algorithm Hash digest
SHA256 43725953c2f747b898f65ae8670c48a0ef13479e6b865a8b2d656065738d9b6a
MD5 502625941a2f72054434106be1d4e690
BLAKE2b-256 bd22e501b0b8907143159ca33aa2291a57415d88b006230d1f40b84277a7e4e4

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page