From 43e3eb2c611ce1c73cfe2bd48fbb6a049f3984cd Mon Sep 17 00:00:00 2001 From: Carter Francis Date: Wed, 27 Mar 2024 09:06:47 -0500 Subject: [PATCH] Formatting: Add Pre-commit for running black --- .pre-commit-config.yaml | 10 ++++++++++ 1 file changed, 10 insertions(+) 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..48bd62fa --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,10 @@ +repos: + - repo: https://github.com/psf/black + # Version can be updated by running "pre-commit autoupdate" + rev: 24.3.0 + hooks: + - id: black +ci: + # Don't run automatically on PRs, instead add the comment + # "pre-commit.ci autofix" on a pull request to manually trigger auto-fixing + autofix_prs: false