Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit822855b

Browse files
committed
Run black code formatter
1 parentfb1832f commit822855b

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

‎.github/workflows/ci.yml‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ jobs:
3232
command:clippy
3333
args:--all-targets --all-features
3434

35+
-name:Lint with Black
36+
run:pip install black && black --check .
37+
3538
macos:
3639
runs-on:macos-latest
3740
needs:lint

‎tests/test_engine.py‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ def test_deserialize_corrupt(tmpdir):
6363
withpytest.raises(adblock.DeserializationError):
6464
engine.deserialize(b"abc")
6565

66+
6667
deftest_serde():
6768
engine=empty_engine()
6869
serialization_result=engine.serialize()

‎tests/test_exceptions.py‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
importadblock
22

3+
34
deftest_correct_baseclasses():
45
assertissubclass(adblock.AdblockException,Exception)
56
assertissubclass(adblock.BlockerException,adblock.AdblockException)
67
assertissubclass(adblock.SerializationError,adblock.BlockerException)
78
assertissubclass(adblock.DeserializationError,adblock.BlockerException)
89
assertissubclass(adblock.OptimizedFilterExistence,adblock.BlockerException)
910
assertissubclass(adblock.BadFilterAddUnsupported,adblock.BlockerException)
10-
assertissubclass(adblock.FilterExists,adblock.BlockerException)
11+
assertissubclass(adblock.FilterExists,adblock.BlockerException)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp