From 527d06f7a4fc8257e46beb56075eaa8321227002 Mon Sep 17 00:00:00 2001 From: Brad Edwards Date: Tue, 14 May 2024 08:40:05 -0700 Subject: [PATCH] Add precommit config --- .pre-commit-config.yaml | 18 ++++++++++++++++++ scripts/custom/keyword_search.py | 2 +- 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 .pre-commit-config.yaml diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 00000000..cb8364cc --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,18 @@ +repos: + - repo: https://github.com/psf/black + rev: 24.4.2 + hooks: + - id: black + language_version: python3 + + - repo: https://github.com/pycqa/isort + rev: 5.13.2 + hooks: + - id: isort + language_version: python3 + additional_dependencies: [toml] + + - repo: https://github.com/pycqa/flake8 + rev: 7.0.0 + hooks: + - id: flake8 diff --git a/scripts/custom/keyword_search.py b/scripts/custom/keyword_search.py index c3bd3492..5f0cbe80 100644 --- a/scripts/custom/keyword_search.py +++ b/scripts/custom/keyword_search.py @@ -11,7 +11,7 @@ from docx.oxml.ns import qn from docx.shared import RGBColor -target_date = datetime(2024, 5, 2) +target_date = datetime(2024, 5, 13) def latex_to_human_readable(latex_str):