From 0fd7863aeab5c28a43e50870c8a10c864615c180 Mon Sep 17 00:00:00 2001 From: iTitou Date: Mon, 9 Jan 2023 09:17:19 +0100 Subject: [PATCH 1/4] Fix yaml formatting for pre-commit Signed-off-by: iTitou --- .pre-commit-config.yaml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index f1d9bd8..4e61d0b 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,10 +1,10 @@ repos: -- repo: https://github.com/psf/black - rev: 22.12.0 - hooks: - - id: black +- repo: https://github.com/psf/black + rev: 22.12.0 + hooks: + - id: black -- repo: https://github.com/pre-commit/mirrors-isort - rev: v5.10.1 - hooks: - - id: isort +- repo: https://github.com/pre-commit/mirrors-isort + rev: v5.10.1 + hooks: + - id: isort From 65cb586c2731a6acb7cd7a269262bac2e00108f3 Mon Sep 17 00:00:00 2001 From: iTitou Date: Mon, 9 Jan 2023 09:17:38 +0100 Subject: [PATCH 2/4] Add generic pre-commit checks Signed-off-by: iTitou --- .pre-commit-config.yaml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 4e61d0b..f938c37 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,4 +1,11 @@ repos: +- repo: https://github.com/pre-commit/pre-commit-hooks + rev: v2.4.0 + hooks: + - id: trailing-whitespace + - id: end-of-file-fixer + - id: check-added-large-files + - repo: https://github.com/psf/black rev: 22.12.0 hooks: From 112b14eb8852d9ae0cd53af07ce8bae9a2c08576 Mon Sep 17 00:00:00 2001 From: iTitou Date: Mon, 9 Jan 2023 09:21:56 +0100 Subject: [PATCH 3/4] Exclude data files from pre-commit checks Signed-off-by: iTitou --- .pre-commit-config.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index f938c37..1ac159f 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -4,7 +4,9 @@ repos: hooks: - id: trailing-whitespace - id: end-of-file-fixer + exclude: ^data/ - id: check-added-large-files + exclude: ^data/ - repo: https://github.com/psf/black rev: 22.12.0 From e6740d2e462fc0f293f8eef6fec68213fd2b2a81 Mon Sep 17 00:00:00 2001 From: iTitou Date: Mon, 9 Jan 2023 09:22:11 +0100 Subject: [PATCH 4/4] Apply fixes for pre-commit Signed-off-by: iTitou --- doc/source/index.rst | 5 ++--- plugins/les_republicains_months.json | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/doc/source/index.rst b/doc/source/index.rst index d851f75..3464267 100644 --- a/doc/source/index.rst +++ b/doc/source/index.rst @@ -38,7 +38,7 @@ Reply options Hilight made easy. :: - + @bot.command(r'\!hello +([^ ]+)') def hello_someone(msg): msg.reply("Hello " + msg.args[0]) @@ -48,7 +48,7 @@ Hilight made easy. Reply in private conversation is also this simple: :: - + @bot.command(r'\!hello +([^ ]+)') def hello_someone(msg): msg.reply("Hello " + msg.args[0]) @@ -147,4 +147,3 @@ Indices and tables * :ref:`genindex` * :ref:`modindex` * :ref:`search` - diff --git a/plugins/les_republicains_months.json b/plugins/les_republicains_months.json index 4ce960c..f8e1cf6 100644 --- a/plugins/les_republicains_months.json +++ b/plugins/les_republicains_months.json @@ -1 +1 @@ -{"Vendémiaire":[22,9,21,10],"Brumaire":[22,10,20,11],"Frimaire":[21,11,20,12],"Nivôse":[21,12,19,1],"Pluviôse":[20,1,18,2],"Ventôse":[19,2,20,3],"Germinal":[21,3,19,4],"Floréal":[20,4,19,5],"Prairial":[20,5,18,6],"Messidor":[19,6,18,7],"Thermidor":[19,7,17,8],"Fructidor":[18,8,16,9]} \ No newline at end of file +{"Vendémiaire":[22,9,21,10],"Brumaire":[22,10,20,11],"Frimaire":[21,11,20,12],"Nivôse":[21,12,19,1],"Pluviôse":[20,1,18,2],"Ventôse":[19,2,20,3],"Germinal":[21,3,19,4],"Floréal":[20,4,19,5],"Prairial":[20,5,18,6],"Messidor":[19,6,18,7],"Thermidor":[19,7,17,8],"Fructidor":[18,8,16,9]}