From 4d3e0c46a23c602de37dd233d9ae471bd074fa01 Mon Sep 17 00:00:00 2001 From: benedettoleto Date: Thu, 18 Jul 2024 19:23:18 +0200 Subject: [PATCH] fix black configuration: checks are done only on the workflow action and not on the precommit stage --- .github/workflows/python-tests.yaml | 2 +- pyproject.toml | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/python-tests.yaml b/.github/workflows/python-tests.yaml index 7db9dff..5359a8d 100644 --- a/.github/workflows/python-tests.yaml +++ b/.github/workflows/python-tests.yaml @@ -32,7 +32,7 @@ jobs: - name: Check with Black run: | - poetry run black . + poetry run black --check . - name: Check with docformatter run: | diff --git a/pyproject.toml b/pyproject.toml index 781bb9a..a98ad05 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -50,7 +50,6 @@ nehar = ["pytorch-lightning", "gdown"] [tool.black] exclude = '/neurobench/examples/' line-length = 88 -check = true [tool.docformatter] exclude = '/neurobench/examples/'