djlint / djLint

✨ HTML Template Linter and Formatter. Django - Jinja - Nunjucks - Handlebars - GoLang
https://djLint.com
GNU General Public License v3.0
703 stars 84 forks source link

[FEATURE] `pyproject.toml` should support list syntax for `ignore` #776

Open knyghty opened 1 year ago

knyghty commented 1 year ago

Feature Request

Right now you have to specify ignores like this:

[tool.djlint]
ignore = "H001,H002,H003"

More than just being messy, it's also hard to add comments for particular codes. Nicer would be:

[tool.djlint]
ignore = [
    # Ignored because x.
    "H001", 
    # Ignored because y.
    "H002",
    # Ignored because z.
    "H003",
]
welcome[bot] commented 1 year ago

Thanks for opening your first issue here!