diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 02a57e52f..24df68dad 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 3ad0731e5..a8ed0e8f1 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 +)/ +'''