Skip to content

Commit 6488ca0

Browse files
committed
ci: black
1 parent 68b0cdd commit 6488ca0

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

.github/workflows/python-package.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,12 @@ jobs:
2828
run: |
2929
python -m pip install --upgrade pip
3030
python -m pip install pytest==7.0.0
31+
python -m pip install black==24.8.0
3132
python -m pip install .
3233
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
34+
- name: Check code formatting with Black
35+
run: |
36+
black --check .
3337
- name: Test with pytest
3438
run: |
3539
pytest tests/

tests/test_fixture.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -617,7 +617,7 @@ async def test_a(self, my_fixture):
617617

618618
result.assert_outcomes(passed=1)
619619

620-
620+
621621
def test_fixture_nested_exception(testdir):
622622
testdir.makepyfile(
623623
f"""
@@ -642,4 +642,4 @@ async def test_hello(second):
642642
)
643643

644644
result = testdir.runpytest()
645-
result.assert_outcomes(errors=0, failed=1)
645+
result.assert_outcomes(errors=0, failed=1)

0 commit comments

Comments
 (0)