From 6e9ad0d5a9654d2b7c8643fca7b5aa18cbe6717a Mon Sep 17 00:00:00 2001 From: Tulir Asokan Date: Fri, 10 Nov 2023 23:42:13 +0200 Subject: [PATCH] Add basic pre-commit rules --- .pre-commit-config.yaml | 9 +++++++++ data/plugins/official/dice.yaml | 1 - data/plugins/official/echo.yaml | 2 +- data/plugins/official/factorial.yaml | 1 - data/plugins/thirdparty/gifme.yaml | 2 +- data/plugins/thirdparty/reminder-agenda.yaml | 2 +- static/index.css | 2 +- 7 files changed, 13 insertions(+), 6 deletions(-) create mode 100644 .pre-commit-config.yaml diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 0000000..4ad438a --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,9 @@ +repos: + - repo: https://github.com/pre-commit/pre-commit-hooks + rev: v4.4.0 + hooks: + - id: trailing-whitespace + exclude_types: [markdown] + - id: end-of-file-fixer + - id: check-yaml + - id: check-added-large-files diff --git a/data/plugins/official/dice.yaml b/data/plugins/official/dice.yaml index 580f388..47c141e 100644 --- a/data/plugins/official/dice.yaml +++ b/data/plugins/official/dice.yaml @@ -6,4 +6,3 @@ description: A combined dice rolling and calculator bot. public_instances: - "@dice:maunium.net" - "@dice:t2bot.io" - diff --git a/data/plugins/official/echo.yaml b/data/plugins/official/echo.yaml index a3e4882..884e291 100644 --- a/data/plugins/official/echo.yaml +++ b/data/plugins/official/echo.yaml @@ -4,7 +4,7 @@ license: MIT author: Tulir description: | A bot that echoes pings and other stuff. - + See [#ping:maunium.net](https://matrix.to/#/#ping:maunium.net) for a room with lots of echo bots. public_instances: diff --git a/data/plugins/official/factorial.yaml b/data/plugins/official/factorial.yaml index fc2b72d..a4f1771 100644 --- a/data/plugins/official/factorial.yaml +++ b/data/plugins/official/factorial.yaml @@ -6,4 +6,3 @@ description: A bot to calculate unexpected factorials. public_instances: - "@factorial:maunium.net" - "@factorial:t2bot.io" - diff --git a/data/plugins/thirdparty/gifme.yaml b/data/plugins/thirdparty/gifme.yaml index a3f0284..fdd3259 100644 --- a/data/plugins/thirdparty/gifme.yaml +++ b/data/plugins/thirdparty/gifme.yaml @@ -3,7 +3,7 @@ repo: https://github.com/williamkray/maubot-gifme license: MIT author: William Kray description: | - Superior gif responses. Save your own library of image or video responses. + Superior gif responses. Save your own library of image or video responses. Allows fallback behavior to Giphy or Tenor, optionally saves quotes from users for comedic effect or to be used as an FAQ bot! public_instances: [] diff --git a/data/plugins/thirdparty/reminder-agenda.yaml b/data/plugins/thirdparty/reminder-agenda.yaml index cab40a2..101b6db 100644 --- a/data/plugins/thirdparty/reminder-agenda.yaml +++ b/data/plugins/thirdparty/reminder-agenda.yaml @@ -7,7 +7,7 @@ license: AGPL-3.0-or-later # The author of the plugin. author: Ruby Marx # A short description for the plugin. May contain markdown. -description: Create reminders, recurring reminders, and agenda items. A maubot port of [matrix-reminder-bot](https://github.com/anoadragon453/matrix-reminder-bot/tree/master) combined with [maubot/reminder](https://github.com/maubot/reminder) +description: Create reminders, recurring reminders, and agenda items. A maubot port of [matrix-reminder-bot](https://github.com/anoadragon453/matrix-reminder-bot/tree/master) combined with [maubot/reminder](https://github.com/maubot/reminder) # Antifeature identifiers. Currently the only defined value is `synchronous`, # which must be included if the plugin uses non-async libraries in the main # thread (because that can block the whole maubot process). diff --git a/static/index.css b/static/index.css index c12236b..9102c09 100644 --- a/static/index.css +++ b/static/index.css @@ -53,7 +53,7 @@ body > header { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 4; - line-clamp: 4; + line-clamp: 4; -webkit-box-orient: vertical; }