From a0857ad80021ff990c7dc5b6ec96998407decbab Mon Sep 17 00:00:00 2001 From: Matthew Pitkin Date: Thu, 4 Jul 2024 10:13:13 +0100 Subject: [PATCH] exclude _version.py from black-ification --- .github/workflows/ci_tests.yml | 4 ++-- pyproject.toml | 7 ++++--- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci_tests.yml b/.github/workflows/ci_tests.yml index 48ade00..1a6cd3b 100644 --- a/.github/workflows/ci_tests.yml +++ b/.github/workflows/ci_tests.yml @@ -39,12 +39,12 @@ jobs: if: runner.os == 'Linux' run: | ./install_tempo2.sh - - name: Run lint - run: make lint - name: Install dependencies and package run: | python -m pip install --upgrade pip pip install -e .[astropy,dev] + - name: Run lint + run: make lint - name: Test with pytest run: make test diff --git a/pyproject.toml b/pyproject.toml index 6a26f12..fc01913 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -81,8 +81,8 @@ write_to = "libstempo/_version.py" [tool.black] line-length = 120 target_version = ['py39'] -include = "\\.pyi?$" -exclude = """ +include = '\\.pyi?$' +exclude = ''' ( /( \\.eggs # exclude a few common directories in the @@ -96,6 +96,7 @@ exclude = """ | dist | docs | .libstempo + | libstempo/_version\.py )/ ) -""" +'''