commit: e9e2809eeb9bd063b0f36f05b1773435ed7ef7c8 Author: Zac Medico <zmedico <AT> gentoo <DOT> org> AuthorDate: Sun Jan 28 22:58:36 2024 +0000 Commit: Zac Medico <zmedico <AT> gentoo <DOT> org> CommitDate: Sun Jan 28 23:01:56 2024 +0000 URL: https://gitweb.gentoo.org/proj/portage.git/commit/?id=e9e2809e
actions: Use psf/black <AT> 23.12.1 and sync pre-commit version The versions must be consistent, since psf/black@stable now refers to 24.1.1 which triggers some reformatting relative to black 23.x. The consistency should correct lint failures like this: https://github.com/gentoo/portage/actions/runs/7667403073/job/20950314014?pr=1239 Signed-off-by: Zac Medico <zmedico <AT> gentoo.org> .github/workflows/lint.yml | 2 +- .pre-commit-config.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 69b9578d4b..f75eaa0e7d 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -13,7 +13,7 @@ jobs: echo "::set-output name=missed::$( find bin -type f -not -name '*.py' -not -name '*.sh' | \ xargs grep -l '#!/usr/bin/env python' | tr $'\n' ' ')" - - uses: psf/black@stable + - uses: psf/[email protected] with: src: . ${{ steps.stragglers.outputs.missed }} diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 53856cb236..72b0df3edd 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,7 +1,7 @@ --- repos: - repo: https://github.com/psf/black - rev: 23.9.1 + rev: 23.12.1 hooks: - id: black - repo: https://github.com/PyCQA/pylint
