From ad0f9cbc8db3efb1a2884041db9070035a4cf5b4 Mon Sep 17 00:00:00 2001 From: kcz358 Date: Sun, 1 Sep 2024 08:18:26 +0000 Subject: [PATCH] Change workflow to pre-commit --- .github/workflows/lint.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 11721fd8..6914b93c 100755 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -11,7 +11,9 @@ jobs: uses: actions/setup-python@v4 with: python-version: '3.9' - - name: Install specific version of Black - run: pip install black==23.9.1 - - name: Run Black - run: black --line-length=240 ./ \ No newline at end of file + - name: Install pre-commit hook + run: | + python -m pip install pre-commit + pre-commit install + - name: Linting + run: pre-commit run --all-files \ No newline at end of file