mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
Move black to YAML, not pytest
This commit is contained in:
parent
1289eb0589
commit
53e6a72a95
2 changed files with 2 additions and 11 deletions
2
.github/workflows/test.yml
vendored
2
.github/workflows/test.yml
vendored
|
|
@ -36,6 +36,8 @@ jobs:
|
||||||
- name: Install docs dependencies
|
- name: Install docs dependencies
|
||||||
run: |
|
run: |
|
||||||
pip install -e '.[docs]'
|
pip install -e '.[docs]'
|
||||||
|
- name: Black
|
||||||
|
run: black --check .
|
||||||
- name: Check if cog needs to be run
|
- name: Check if cog needs to be run
|
||||||
run: |
|
run: |
|
||||||
cog --check docs/*.rst
|
cog --check docs/*.rst
|
||||||
|
|
|
||||||
|
|
@ -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
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue