Skip to content

Commit

Permalink
Enforced black formatting during CI.
Browse files Browse the repository at this point in the history
  • Loading branch information
canismarko committed Feb 15, 2024
1 parent b49189a commit 3ea924b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 © 2023, UChicago Argonne, LLC' {} \; | grep 0$ | cut -d':' -f1
- name: Test with pytest in Xvfb
run: xvfb-run python -m pytest -vv --timeout=120

0 comments on commit 3ea924b

Please sign in to comment.