Move black to YAML, not pytest

This commit is contained in:
Simon Willison 2025-10-30 10:38:09 -07:00
commit 53e6a72a95
2 changed files with 2 additions and 11 deletions

View file

@ -36,6 +36,8 @@ jobs:
- name: Install docs dependencies
run: |
pip install -e '.[docs]'
- name: Black
run: black --check .
- name: Check if cog needs to be run
run: |
cog --check docs/*.rst

View file

@ -1,11 +0,0 @@
import black
from click.testing import CliRunner
from pathlib import Path
code_root = Path(__file__).parent.parent
def test_black():
runner = CliRunner()
result = runner.invoke(black.main, [str(code_root), "--check"])
assert result.exit_code == 0, result.output