commit 822855b20a7864838084a813c457e2eb1f9570d5
parent fb1832feb868a81e2d10a1707c57df4623304313
Author: Árni Dagur <arni@dagur.eu>
Date: Sat, 26 Jun 2021 18:52:22 +0000
Run black code formatter
Diffstat:
3 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
@@ -32,6 +32,9 @@ jobs:
command: clippy
args: --all-targets --all-features
+ - name: Lint with Black
+ run: pip install black && black --check .
+
macos:
runs-on: macos-latest
needs: lint
diff --git a/tests/test_engine.py b/tests/test_engine.py
@@ -63,6 +63,7 @@ def test_deserialize_corrupt(tmpdir):
with pytest.raises(adblock.DeserializationError):
engine.deserialize(b"abc")
+
def test_serde():
engine = empty_engine()
serialization_result = engine.serialize()
diff --git a/tests/test_exceptions.py b/tests/test_exceptions.py
@@ -1,5 +1,6 @@
import adblock
+
def test_correct_baseclasses():
assert issubclass(adblock.AdblockException, Exception)
assert issubclass(adblock.BlockerException, adblock.AdblockException)
@@ -7,4 +8,4 @@ def test_correct_baseclasses():
assert issubclass(adblock.DeserializationError, adblock.BlockerException)
assert issubclass(adblock.OptimizedFilterExistence, adblock.BlockerException)
assert issubclass(adblock.BadFilterAddUnsupported, adblock.BlockerException)
- assert issubclass(adblock.FilterExists, adblock.BlockerException)
-\ No newline at end of file
+ assert issubclass(adblock.FilterExists, adblock.BlockerException)