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