Skip to content

Commit 58139e0

Browse files
authored
format (and add to CI) (#87)
Pins the black version. We'll have to update it periodically.
1 parent db1315d commit 58139e0

4 files changed

Lines changed: 420 additions & 226 deletions

File tree

.github/workflows/ci.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,12 @@ jobs:
1414

1515
- uses: actions/checkout@v2
1616

17+
- uses: psf/black@stable
18+
with:
19+
options: "--check --verbose"
20+
src: "cvc5_pythonic_api"
21+
version: "23.3.0"
22+
1723
- uses: actions/checkout@v2
1824
with:
1925
repository: cvc5/cvc5

Makefile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,10 @@ check:
77
pyright ./cvc5_pythonic_api
88

99
fmt:
10-
black ./cvc5_pythonic_api
10+
black --required-version 23.3.0 ./cvc5_pythonic_api
11+
12+
check-fmt:
13+
black --check --verbose --required-version 23.3.0 ./cvc5_pythonic_api
1114

1215
coverage:
1316
coverage run test_unit.py && coverage report && coverage html

0 commit comments

Comments
 (0)