From 9e2e99f370a6cfb702bdc4aa85aaa5ca2b8882ae Mon Sep 17 00:00:00 2001 From: yaegassy Date: Fri, 1 Oct 2021 16:40:41 +0900 Subject: [PATCH] chore: adjust docs and help for rule name changes --- docs/djlint/configuration.rst | 2 +- docs/djlint/usage.rst | 4 ++-- src/djlint/__init__.py | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/djlint/configuration.rst b/docs/djlint/configuration.rst index 422bdc3..4e4ffe1 100644 --- a/docs/djlint/configuration.rst +++ b/docs/djlint/configuration.rst @@ -17,7 +17,7 @@ Usage: .. code:: ini - ignore = "W013" + ignore = "H014" extension --------- diff --git a/docs/djlint/usage.rst b/docs/djlint/usage.rst index 86940c3..63b1fb4 100644 --- a/docs/djlint/usage.rst +++ b/docs/djlint/usage.rst @@ -29,7 +29,7 @@ To check what may change in formatting run: .. code:: sh - djlint . --check --ignore="W013,W014" + djlint . --check --ignore="H014,H017" To format code run: @@ -57,7 +57,7 @@ CLI Args Options: -e, --extension TEXT File extension to lint [default: html] - -i, --ignore "Codes" Rules to be ignored. ex: "W013,W014" + -i, --ignore "Codes" Rules to be ignored. ex: "H014,H017" --indent Indent spacing. ex: 3 --reformat Reformat the file(s). --check Check formatting on the file(s). diff --git a/src/djlint/__init__.py b/src/djlint/__init__.py index d29e70c..fd595e4 100644 --- a/src/djlint/__init__.py +++ b/src/djlint/__init__.py @@ -171,7 +171,7 @@ def build_quantity_tense(size: int) -> str: "--ignore", type=str, default="", - help='Codes to ignore. ex: "W013,W014"', + help='Codes to ignore. ex: "H014,H017"', show_default=False, ) @click.option(