From ab667a02089b96ab5b1d393e0172df6cd1dab32a Mon Sep 17 00:00:00 2001 From: Aminda Suomalainen Date: Tue, 9 May 2023 13:24:37 +0300 Subject: [PATCH] pre-commit --- .editorconfig | 2 +- .gitignore | 1 - .pre-commit-config.yaml | 30 ++++++++++++++++++++++++++++++ chatgpt-cause-flyer.tex | 1 - chatgpt-event-flyer.tex | 1 - chatgpt-generalassembly-invite.tex | 1 - chatgpt-humanrights-flyer.tex | 1 - chatgpt-meetingnotes.tex | 1 - chatgpt-organization-flyer.tex | 1 - 9 files changed, 31 insertions(+), 8 deletions(-) create mode 100644 .pre-commit-config.yaml diff --git a/.editorconfig b/.editorconfig index 8710156..d30e6f9 100644 --- a/.editorconfig +++ b/.editorconfig @@ -8,7 +8,7 @@ charset = utf-8 indent_style = tab indent_size = tab -[*.{markdown,md}] +[*.{markdown,md,tex}] trim_trailing_whitespace = false indent_style = space indent_size = 2 diff --git a/.gitignore b/.gitignore index 4579efc..4278669 100644 --- a/.gitignore +++ b/.gitignore @@ -300,4 +300,3 @@ TSWLatexianTemp* # option is specified. Footnotes are the stored in a file with suffix Notes.bib. # Uncomment the next line to have this generated file ignored. #*Notes.bib - diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 0000000..ff9a8ef --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,30 @@ +ci: + # Forĝejo/Gitea mirrors will autoclose pull requests. This should decrease + # the frequency of unnecessary PRs. + # https://github.com/pre-commit-ci/issues/issues/83 + autoupdate_schedule: quarterly + +repos: + - repo: https://github.com/pre-commit/pre-commit-hooks + rev: v4.4.0 + hooks: + - id: check-added-large-files + - id: check-case-conflict + - id: check-executables-have-shebangs + - id: check-shebang-scripts-are-executable + - id: destroyed-symlinks + - id: detect-private-key + - id: end-of-file-fixer + - id: fix-byte-order-marker + - id: trailing-whitespace + exclude_types: [tsv, markdown] + - repo: https://github.com/pre-commit/mirrors-prettier + rev: "v3.0.0-alpha.9-for-vscode" + hooks: + - id: prettier + - repo: https://github.com/editorconfig-checker/editorconfig-checker.python + rev: "2.7.1" + hooks: + - id: editorconfig-checker + alias: ec + args: [-disable-max-line-length] diff --git a/chatgpt-cause-flyer.tex b/chatgpt-cause-flyer.tex index 1bc53fa..00096ca 100644 --- a/chatgpt-cause-flyer.tex +++ b/chatgpt-cause-flyer.tex @@ -48,4 +48,3 @@ Phone: 555-555-5555 \end{center} \end{document} - diff --git a/chatgpt-event-flyer.tex b/chatgpt-event-flyer.tex index ab17da7..574bd38 100644 --- a/chatgpt-event-flyer.tex +++ b/chatgpt-event-flyer.tex @@ -37,4 +37,3 @@ Phone: 555-555-5555 \end{center} \end{document} - diff --git a/chatgpt-generalassembly-invite.tex b/chatgpt-generalassembly-invite.tex index 5414e59..ed017ed 100644 --- a/chatgpt-generalassembly-invite.tex +++ b/chatgpt-generalassembly-invite.tex @@ -41,4 +41,3 @@ President, Feline Friends Association \end{center} \end{document} - diff --git a/chatgpt-humanrights-flyer.tex b/chatgpt-humanrights-flyer.tex index aac33be..a988465 100644 --- a/chatgpt-humanrights-flyer.tex +++ b/chatgpt-humanrights-flyer.tex @@ -49,4 +49,3 @@ Website: www.humanrights.org \end{center} \end{document} - diff --git a/chatgpt-meetingnotes.tex b/chatgpt-meetingnotes.tex index bd92c1e..ef05e15 100644 --- a/chatgpt-meetingnotes.tex +++ b/chatgpt-meetingnotes.tex @@ -44,4 +44,3 @@ \end{itemize} \end{document} - diff --git a/chatgpt-organization-flyer.tex b/chatgpt-organization-flyer.tex index 4c154b8..ee54515 100644 --- a/chatgpt-organization-flyer.tex +++ b/chatgpt-organization-flyer.tex @@ -53,4 +53,3 @@ Phone: 555-555-5555 \end{center} \end{document} -