From 0866f59951f91427115048ff1ac53c70e6042efd Mon Sep 17 00:00:00 2001 From: Mark Wolfman Date: Thu, 15 Feb 2024 09:41:01 -0600 Subject: [PATCH] Enforced black formatting during CI. --- .github/workflows/ci.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 22d3dc50..3bcbfbee 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -46,9 +46,12 @@ jobs: isort --check src/ # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics + - name: Enforce formatting with black + run: | + black --check src/ - name: Licensing run: | # Check that the license snippet is in each python source - find src/ -type f -name "*.py" -exec grep -H -c 'Copyright © 2023, UChicago Argonne, LLC' {} \; | grep 0$ | cut -d':' -f1 + find src/ -type f -name "*.py" -exec grep -H -c 'Copyright © 202[34], UChicago Argonne, LLC' {} \; | grep 0$ | cut -d':' -f1 - name: Test with pytest in Xvfb run: xvfb-run python -m pytest -vv --timeout=120