From 82624e9e0f4eab88a0591e3c852873ba65a1c176 Mon Sep 17 00:00:00 2001 From: Richard Tibbles Date: Thu, 27 Jan 2022 16:06:45 -0800 Subject: [PATCH] Format files when building. --- .github/workflows/pypi-publish.yml | 2 +- Makefile | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pypi-publish.yml b/.github/workflows/pypi-publish.yml index 5223e48..40ca6c2 100644 --- a/.github/workflows/pypi-publish.yml +++ b/.github/workflows/pypi-publish.yml @@ -21,7 +21,7 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip - pip install setuptools wheel twine + pip install setuptools wheel twine pre-commit - name: Build and publish env: TWINE_USERNAME: __token__ diff --git a/Makefile b/Makefile index 94c2493..c680427 100644 --- a/Makefile +++ b/Makefile @@ -26,6 +26,7 @@ test: build: pip install -e . python scripts/generate_from_specs.py + pre-commit run --all-files || true release: clean build python setup.py sdist