mirror of
https://github.com/simonw/sqlite-utils.git
synced 2026-07-24 01:44:31 +02:00
Black now runs in GitHub actions, refs #143
This commit is contained in:
parent
8c405965e9
commit
d7d3f96286
1 changed files with 0 additions and 20 deletions
|
|
@ -1,20 +0,0 @@
|
|||
import black
|
||||
from click.testing import CliRunner
|
||||
from pathlib import Path
|
||||
import pytest
|
||||
import sys
|
||||
|
||||
code_root = Path(__file__).parent.parent
|
||||
|
||||
|
||||
@pytest.mark.skipif(
|
||||
sys.version_info[:2] > (3, 6),
|
||||
reason="Breaks on 3.7 at the moment, but it only needs to run under one Python version",
|
||||
)
|
||||
def test_black():
|
||||
runner = CliRunner()
|
||||
result = runner.invoke(
|
||||
black.main,
|
||||
[str(code_root / "tests"), str(code_root / "sqlite_utils"), "--check"],
|
||||
)
|
||||
assert result.exit_code == 0, result.output
|
||||
Loading…
Add table
Add a link
Reference in a new issue