From a12093b711d2fb8e9e7873c5b27eaac98b8b3394 Mon Sep 17 00:00:00 2001 From: Imran Iqbal Date: Tue, 24 May 2022 16:55:23 +0100 Subject: [PATCH 1/2] docs(readme): remove blank line at EOF --- .pre-commit-config.yaml | 16 ++++++++++++++++ docs/README.rst | 1 - 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 2cb381e..62a6eaf 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -3,6 +3,17 @@ --- # See https://pre-commit.com for more information # See https://pre-commit.com/hooks.html for more hooks +ci: + autofix_commit_msg: | + ci(pre-commit.ci): apply auto fixes from pre-commit.com hooks + + for more information, see https://pre-commit.ci + autofix_prs: true + autoupdate_branch: '' + autoupdate_commit_msg: 'ci(pre-commit.ci): perform pre-commit autoupdate' + autoupdate_schedule: weekly + skip: [] + submodules: false default_stages: [commit] repos: - repo: https://github.com/dafyddj/commitlint-pre-commit-hook @@ -63,3 +74,8 @@ repos: docs/TOFS_pattern.rst| )$ additional_dependencies: [pygments==2.9.0] + - repo: https://github.com/pre-commit/pre-commit-hooks + rev: v4.2.0 + hooks: + - id: end-of-file-fixer + - id: trailing-whitespace diff --git a/docs/README.rst b/docs/README.rst index c586870..519dae5 100644 --- a/docs/README.rst +++ b/docs/README.rst @@ -181,4 +181,3 @@ Runs all of the stages above in one go: i.e. ``destroy`` + ``converge`` + ``veri ^^^^^^^^^^^^^^^^^^^^^ Gives you SSH access to the instance for manual testing. - From efb5e0c3cae12e50bd667f0f8c868464d1acb48f Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 24 May 2022 16:02:40 +0000 Subject: [PATCH 2/2] ci(pre-commit.ci): apply auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- nut/files/default/upsd-conf.jinja | 1 - nut/files/default/upsd-users.jinja | 8 ++++---- nut/files/default/upsmon-conf.jinja | 1 - 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/nut/files/default/upsd-conf.jinja b/nut/files/default/upsd-conf.jinja index db19d6d..01d7657 100644 --- a/nut/files/default/upsd-conf.jinja +++ b/nut/files/default/upsd-conf.jinja @@ -141,4 +141,3 @@ CERTIDENT {{ nut.server.upsd.config.cert_ident }} {%- if nut.server.upsd.config.cert_request is defined %} CERTREQUEST {{ nut.server.upsd.config.cert_request }} {%- endif %} - diff --git a/nut/files/default/upsd-users.jinja b/nut/files/default/upsd-users.jinja index 79ecd38..8b85378 100644 --- a/nut/files/default/upsd-users.jinja +++ b/nut/files/default/upsd-users.jinja @@ -23,17 +23,17 @@ # # -------------------------------------------------------------------------- # -# actions: Let the user do certain things with upsd. -# +# actions: Let the user do certain things with upsd. +# # Valid actions are: # # SET - change the value of certain variables in the UPS # FSD - set the "forced shutdown" flag in the UPS -# +# # -------------------------------------------------------------------------- # # instcmds: Let the user initiate specific instant commands. Use "ALL" -# to grant all commands automatically. There are many possible +# to grant all commands automatically. There are many possible # commands, so use 'upscmd -l' to see what your hardware supports. Here # are a few examples: # diff --git a/nut/files/default/upsmon-conf.jinja b/nut/files/default/upsmon-conf.jinja index 63d21f5..612c183 100644 --- a/nut/files/default/upsmon-conf.jinja +++ b/nut/files/default/upsmon-conf.jinja @@ -465,4 +465,3 @@ CERTVERIFY {{ nut.client.upsmon.config.certverify }} {%- if nut.client.upsmon.config.forcessl is defined %} FORCESSL {{ nut.client.upsmon.config.forcessl }} {%- endif %} -