From d07d61923f4c36b5ae7089544124a13a91d97b15 Mon Sep 17 00:00:00 2001 From: Daniel D'Avella Date: Fri, 27 Oct 2023 16:45:42 -0400 Subject: [PATCH] Add configuration for black to pyproject.toml --- .github/workflows/lint.yml | 2 +- pyproject.toml | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 02a57e52..24df68da 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -31,7 +31,7 @@ jobs: - name: Install Dependencies run: pip install -r requirements/lint.txt - name: Black Format Check - run: black --check . --exclude samples/ + run: black --check . - name: Run pylint run: make lint diff --git a/pyproject.toml b/pyproject.toml index 3ad0731e..a8ed0e8f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -40,3 +40,11 @@ version_file = "src/codemodder/_version.py" [tool.pytest.ini_options] # Ignore integration tests and ci tests by default testpaths = ["tests"] + +[tool.black] +extend-exclude = ''' +/( + tests/samples | + src/codemodder/_version.py +)/ +'''