Releases: thibaudcolas/curlylint
Releases · thibaudcolas/curlylint
v0.13.1
v0.13.1 2022-03-30
Fixed
- Update
patch_clickto fix compatibility issue with click 8.1.0. Fix #132 (#133). Thanks to @jmsmkn and @adamchainz! - Fix incorrect documentation for
no_autofocusandtabindex_no_positive.
v0.13.0 – Quality-of-life improvements
v0.13.0 2021-04-24
This release comes with a blog post! Read on Quality-of-life improvements.
Added
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
v0.12.2 2021-03-06
Fixed
- The
image_altrule no longer crashes when encountering template conditionals in img attributes (#57). Thanks to @adrien-delhorme.
v0.12.1
v0.12.0
v0.12.0 2020-07-26
Release notes from the blog: Accessibility linting rules
Added
- Add experimental
django_forms_renderingrule. - Add experimental
image_altrule. - Add experimental
no_autofocusrule. - Add experimental
tabindex_no_positiverule. - Add experimental
meta_viewportrule.
Changed
- Support parsing HTML elements with UPPERCASE or camelCase tag names, for example
clipPath.
v0.11.0
v0.11.0 2020-05-21
Added
- Add helpful error message when curlylint can’t find any configuration with
--print-config.
Changed
- Fix
--print-configflag running linting when no config is found for the given file. - Clarify error message for invalid
--ruledeclarations. - Publish package with Python wheels as well as egg.
Fixed
- Fix
html_has_langnot raising an error when the HTML element has nolangbut has other attributes.
v0.10.0
v0.10.0 2020-05-21
Added
- Add
--print-configCLI flag to print the configuration for the given file. - Add experimental
html_has_langrule. - Add experimental
aria_rolerule.
Changed
- Show a warning when attempting to use a rule that does not exist.
- Rename
parse-errorerrors toparse_error.
Fixed
- Fix parsing failing for self-closing SVG elements, e.g.
<path />.
v0.9.0
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.typedfile andTyping :: Typedclassifier. - Add
--stdin-filepathCLI flag to provide a pretend path when linting standard input.
Changed
- Indentation is now enforced via the rules configuration, e.g.
indent = 4underneath[tool.curlylint.rules], instead of a top-levelindent-sizeconfiguration.
v0.8.0
v0.8.0 2020-05-04
Added
- Add support for configurable formatters with
--formatCLI parameter /formatconfig attribute. - Add support for JSON formatting with
--format json --quiet. - Add new
stylishreporter and make it the default.compactis still available via--format compact. - Add codes for rules –
indentandparse-errorfor the two existing checks.
v0.7.0
v0.7.0 2020-04-16
Generally reworked the CLI to match the experience of black.
Added
- Improve command line output, matching experience provided by black.
- Add dependencies on
toml,pathspec,dataclasses. - Automatically look for the configuration based on provided source paths.
- Add support for excluding files from linting with the
--exclude/excludeconfig. - Add support for including files for linting with the
--include/includeconfig. - Add automatic reading of
.gitignoreand exclusion of all files ignored there. - Add excludes for more common build tool folders:
venv,myvenv,coverage_html_report,node_modules.
Changed
- Add a
python_requiresto enforce support of Python 3.6+ only. - Switch from docopt to click, like black, with an open-end version range.
- Change curlylint to abort if no input is provided.
- Add
-q/--quietCLI flag. - Switch from Python config files to
pyproject.toml
Removed
- Remove support for
--extensionflag. Use--include(orincludein the config file) instead.