From 821f90f5a8f145d4edd462c47679a0d0d000037b Mon Sep 17 00:00:00 2001 From: David Vo Date: Wed, 1 Jan 2025 16:05:12 +1100 Subject: [PATCH] ci: Move black to pre-commit --- .github/workflows/dist.yml | 2 +- .pre-commit-config.yaml | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 .pre-commit-config.yaml diff --git a/.github/workflows/dist.yml b/.github/workflows/dist.yml index 4065ff8d..31cd5ac3 100644 --- a/.github/workflows/dist.yml +++ b/.github/workflows/dist.yml @@ -40,7 +40,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - - uses: psf/black@stable + - uses: pre-commit/action@v3.0.1 check-doc: runs-on: ubuntu-20.04 diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 00000000..fb4713c1 --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,6 @@ +--- +repos: + - repo: https://github.com/psf/black-pre-commit-mirror + rev: 24.10.0 + hooks: + - id: black