From 7ec8d77ed752e432486256bd46dbe30ef0e34463 Mon Sep 17 00:00:00 2001 From: Kiran Jonnalagadda Date: Mon, 1 Jul 2024 14:05:47 +0530 Subject: [PATCH] Downgrade to Prettier stable release (#496) --- .pre-commit-config.yaml | 5 ++--- .prettierrc.js | 6 ++++++ src/baseframe/templates/baseframe.html | 4 ++-- src/baseframe/templates/baseframe/components.html | 4 ++-- src/baseframe/templates/baseframe/forms.html | 4 ++-- src/baseframe/templates/baseframe/networkbar.html | 4 ++-- src/baseframe/templates/formlayout.html | 4 ++-- src/baseframe/templates/layout.html | 4 ++-- 8 files changed, 20 insertions(+), 15 deletions(-) create mode 100644 .prettierrc.js diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 2417609c..9e419de5 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -89,11 +89,10 @@ repos: args: ['-c', 'pyproject.toml'] additional_dependencies: - 'bandit[toml]' - - repo: https://github.com/pre-commit/mirrors-prettier - rev: v4.0.0-alpha.8 + - repo: https://github.com/pycontribs/mirrors-prettier + rev: v3.3.1 hooks: - id: prettier - args: ['--single-quote', '--trailing-comma', 'es5'] - repo: https://github.com/ducminh-phan/reformat-gherkin rev: v3.0.1 hooks: diff --git a/.prettierrc.js b/.prettierrc.js new file mode 100644 index 00000000..1aed56ad --- /dev/null +++ b/.prettierrc.js @@ -0,0 +1,6 @@ +module.exports = { + endOfLine: 'lf', + singleQuote: true, + trailingComma: 'es5', + printWidth: 88, +}; diff --git a/src/baseframe/templates/baseframe.html b/src/baseframe/templates/baseframe.html index d7c8776c..e12e0453 100644 --- a/src/baseframe/templates/baseframe.html +++ b/src/baseframe/templates/baseframe.html @@ -1,2 +1,2 @@ -{# DEPRECATED: This template is due to be be removed. Use the referenced -template directly. -#} {% extends "baseframe.html.jinja2" %} +{# DEPRECATED: This template is due to be be removed. Use the referenced template +directly. -#} {% extends "baseframe.html.jinja2" %} diff --git a/src/baseframe/templates/baseframe/components.html b/src/baseframe/templates/baseframe/components.html index 925a4e9d..0ef14ebb 100644 --- a/src/baseframe/templates/baseframe/components.html +++ b/src/baseframe/templates/baseframe/components.html @@ -1,2 +1,2 @@ -{# DEPRECATED: This template is due to be be removed. Use the referenced -template directly. -#} {% extends "baseframe/components.html.jinja2" %} +{# DEPRECATED: This template is due to be be removed. Use the referenced template +directly. -#} {% extends "baseframe/components.html.jinja2" %} diff --git a/src/baseframe/templates/baseframe/forms.html b/src/baseframe/templates/baseframe/forms.html index 4cd86b5b..66e703e8 100644 --- a/src/baseframe/templates/baseframe/forms.html +++ b/src/baseframe/templates/baseframe/forms.html @@ -1,2 +1,2 @@ -{# DEPRECATED: This template is due to be be removed. Use the referenced -template directly. -#} {% extends "baseframe/forms.html.jinja2" %} +{# DEPRECATED: This template is due to be be removed. Use the referenced template +directly. -#} {% extends "baseframe/forms.html.jinja2" %} diff --git a/src/baseframe/templates/baseframe/networkbar.html b/src/baseframe/templates/baseframe/networkbar.html index 3d3702bf..44bd207d 100644 --- a/src/baseframe/templates/baseframe/networkbar.html +++ b/src/baseframe/templates/baseframe/networkbar.html @@ -1,2 +1,2 @@ -{# DEPRECATED: This template is due to be be removed. Use the referenced -template directly. -#} {% extends "baseframe/networkbar.html.jinja2" %} +{# DEPRECATED: This template is due to be be removed. Use the referenced template +directly. -#} {% extends "baseframe/networkbar.html.jinja2" %} diff --git a/src/baseframe/templates/formlayout.html b/src/baseframe/templates/formlayout.html index 6c69b224..2f5be291 100644 --- a/src/baseframe/templates/formlayout.html +++ b/src/baseframe/templates/formlayout.html @@ -1,2 +1,2 @@ -{# DEPRECATED: This template is due to be be removed. Use the referenced -template directly. -#} {% extends "formlayout.html.jinja2" %} +{# DEPRECATED: This template is due to be be removed. Use the referenced template +directly. -#} {% extends "formlayout.html.jinja2" %} diff --git a/src/baseframe/templates/layout.html b/src/baseframe/templates/layout.html index 9d5bc586..e7c17df2 100644 --- a/src/baseframe/templates/layout.html +++ b/src/baseframe/templates/layout.html @@ -1,2 +1,2 @@ -{# DEPRECATED: This template is due to be be removed. Use the referenced -template directly. -#} {% extends "layout.html.jinja2" %} +{# DEPRECATED: This template is due to be be removed. Use the referenced template +directly. -#} {% extends "layout.html.jinja2" %}