fix(ci): formatting
This commit is contained in:
parent
8237dc4c16
commit
6a1534124d
2 changed files with 12 additions and 12 deletions
|
|
@ -2,7 +2,7 @@ minimum_pre_commit_version: '3.5.0'
|
||||||
|
|
||||||
repos:
|
repos:
|
||||||
- repo: https://github.com/JohnnyMorganz/StyLua
|
- repo: https://github.com/JohnnyMorganz/StyLua
|
||||||
rev: v2.1.0
|
rev: v2.3.1
|
||||||
hooks:
|
hooks:
|
||||||
- id: stylua-github
|
- id: stylua-github
|
||||||
name: stylua (Lua formatter)
|
name: stylua (Lua formatter)
|
||||||
|
|
@ -10,7 +10,7 @@ repos:
|
||||||
pass_filenames: true
|
pass_filenames: true
|
||||||
|
|
||||||
- repo: https://github.com/astral-sh/ruff-pre-commit
|
- repo: https://github.com/astral-sh/ruff-pre-commit
|
||||||
rev: v0.8.4
|
rev: v0.14.3
|
||||||
hooks:
|
hooks:
|
||||||
- id: ruff-format
|
- id: ruff-format
|
||||||
name: ruff (format)
|
name: ruff (format)
|
||||||
|
|
@ -30,7 +30,7 @@ repos:
|
||||||
pass_filenames: false
|
pass_filenames: false
|
||||||
|
|
||||||
- repo: https://github.com/pre-commit/mirrors-prettier
|
- repo: https://github.com/pre-commit/mirrors-prettier
|
||||||
rev: v3.1.0
|
rev: v4.0.0-alpha.8
|
||||||
hooks:
|
hooks:
|
||||||
- id: prettier
|
- id: prettier
|
||||||
name: prettier (format markdown)
|
name: prettier (format markdown)
|
||||||
|
|
|
||||||
|
|
@ -66,9 +66,9 @@ def test_scraper_offline_fixture_matrix(run_scraper_offline, scraper, mode):
|
||||||
assert hasattr(tr.combined, "input"), "combined missing input"
|
assert hasattr(tr.combined, "input"), "combined missing input"
|
||||||
assert hasattr(tr.combined, "expected"), "combined missing expected"
|
assert hasattr(tr.combined, "expected"), "combined missing expected"
|
||||||
assert isinstance(tr.combined.input, str), "combined.input not string"
|
assert isinstance(tr.combined.input, str), "combined.input not string"
|
||||||
assert isinstance(
|
assert isinstance(tr.combined.expected, str), (
|
||||||
tr.combined.expected, str
|
"combined.expected not string"
|
||||||
), "combined.expected not string"
|
)
|
||||||
assert hasattr(tr, "multi_test"), "Missing multi_test field"
|
assert hasattr(tr, "multi_test"), "Missing multi_test field"
|
||||||
assert isinstance(tr.multi_test, bool), "multi_test not boolean"
|
assert isinstance(tr.multi_test, bool), "multi_test not boolean"
|
||||||
validated_any = True
|
validated_any = True
|
||||||
|
|
@ -82,12 +82,12 @@ def test_scraper_offline_fixture_matrix(run_scraper_offline, scraper, mode):
|
||||||
assert isinstance(obj["combined"], dict), "combined not a dict"
|
assert isinstance(obj["combined"], dict), "combined not a dict"
|
||||||
assert "input" in obj["combined"], "combined missing input key"
|
assert "input" in obj["combined"], "combined missing input key"
|
||||||
assert "expected" in obj["combined"], "combined missing expected key"
|
assert "expected" in obj["combined"], "combined missing expected key"
|
||||||
assert isinstance(
|
assert isinstance(obj["combined"]["input"], str), (
|
||||||
obj["combined"]["input"], str
|
"combined.input not string"
|
||||||
), "combined.input not string"
|
)
|
||||||
assert isinstance(
|
assert isinstance(obj["combined"]["expected"], str), (
|
||||||
obj["combined"]["expected"], str
|
"combined.expected not string"
|
||||||
), "combined.expected not string"
|
)
|
||||||
assert "multi_test" in obj, "Missing multi_test field in raw JSON"
|
assert "multi_test" in obj, "Missing multi_test field in raw JSON"
|
||||||
assert isinstance(obj["multi_test"], bool), "multi_test not boolean"
|
assert isinstance(obj["multi_test"], bool), "multi_test not boolean"
|
||||||
validated_any = True
|
validated_any = True
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue