diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index ec9167a..c5f5f98 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,7 +1,7 @@ --- repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.6.0 + rev: v5.0.0 hooks: - id: trailing-whitespace - id: end-of-file-fixer @@ -44,7 +44,7 @@ repos: types: [file] files: "^tests/Dockerfile_.*" - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.6.3 + rev: v0.9.1 hooks: - id: ruff additional_dependencies: @@ -53,7 +53,7 @@ repos: - requests - types-requests - repo: https://github.com/pre-commit/mirrors-mypy - rev: v1.11.2 + rev: v1.14.1 hooks: - id: mypy additional_dependencies: @@ -62,7 +62,7 @@ repos: - requests - types-requests - repo: https://github.com/sirosen/check-jsonschema - rev: 0.29.2 + rev: 0.31.0 hooks: - id: check-github-workflows - id: check-github-actions diff --git a/tests/config.py b/tests/config.py index 81e777d..ee5432b 100644 --- a/tests/config.py +++ b/tests/config.py @@ -4,14 +4,14 @@ content_removed = [ "ad_970x250", # class match: https://www.iphoneitalia.com/ - "MyAdsId3", # id match + "sellwild-loader", # id match ### "AdRight2", # class match with element having multiple classes - "data-ad-manager-id", # attribute match + "data-taboola-options", # attribute match ##[ "data-freestar-ad id", # combined attribute match 'data-role="tile-ads-module"', # attribute exact match 'onclick="content.ad/"', # attribute contain match 'class="adDisplay-module_foobar"', # attribute startswith match - 'href="https://www.reimageplus.com/foobar"', # attribute startswith match + 'onclick="location.href=\'https://1337x.vpnonly.site/"', # attribute startswith match ##[*^= ] content_exists = [ "ajlkl", # should exist, although one element is removed by privoxy diff --git a/tests/response.html b/tests/response.html index 69ef83d..1141553 100644 --- a/tests/response.html +++ b/tests/response.html @@ -4,14 +4,14 @@