From 937bacacb72e6f2ba227a579c96deaa471e3bfa4 Mon Sep 17 00:00:00 2001 From: Dan Albert Date: Thu, 2 Feb 2023 16:24:27 -0800 Subject: [PATCH] Pin version of black used in GHA. Black rolls out style changes every year, and using "stable" means that the check run on PRs might start formatting differently than we do locally, or require a reformat of the codebase to make a PR submittable. Pin to the version that we've been using. We should update to 23 at some point, but we want to do that deliberately. --- .github/workflows/lint.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index a97e2f61..af6462f2 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -11,6 +11,7 @@ jobs: - uses: actions/setup-python@v2 - uses: psf/black@stable with: + version: ~=22.12 src: "." options: "--check"