Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#87)
Browse files Browse the repository at this point in the history
* [pre-commit.ci] pre-commit autoupdate

updates:
- [github.com/pre-commit/pre-commit-hooks: v4.6.0 → v5.0.0](pre-commit/pre-commit-hooks@v4.6.0...v5.0.0)
- [github.com/astral-sh/ruff-pre-commit: v0.6.3 → v0.9.1](astral-sh/ruff-pre-commit@v0.6.3...v0.9.1)
- [github.com/pre-commit/mirrors-mypy: v1.11.2 → v1.14.1](pre-commit/mirrors-mypy@v1.11.2...v1.14.1)
- [github.com/sirosen/check-jsonschema: 0.29.2 → 0.31.0](python-jsonschema/check-jsonschema@0.29.2...0.31.0)

* update remove check for new filters

Signed-off-by: Andrwe Lord Weber <github@andrwe.org>

---------

Signed-off-by: Andrwe Lord Weber <github@andrwe.org>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Andrwe Lord Weber <github@andrwe.org>
  • Loading branch information
pre-commit-ci[bot] and Andrwe authored Jan 15, 2025
1 parent 7c1c5c6 commit 71a204b
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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:
Expand All @@ -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:
Expand All @@ -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
Expand Down
6 changes: 3 additions & 3 deletions tests/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions tests/response.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@
<div class="ad_970x250">single class should be removed</div>
<div class="asd ajlkl AdRight2">multiple classes that should be removed</div>
<div class="asd ajlkl"> multiple classes that should exist </div>
<div id="MyAdsId3">id should be removed</div>
<div data-ad-manager-id class="success-valid-class">name-only attibute should be removed</div>
<div id="sellwild-loader">id should be removed</div>
<div data-taboola-options class="success-valid-class">name-only attibute should be removed</div>
<div data-freestar-ad id>combined name-only attibute should be removed</div>
<div data-role="tile-ads-module" class="success-valid-class">exact match attibute should be removed</div>
<div onclick="foo_content.ad/-asd">1. contain match attribute should be removed</div>
<div onclick="content.ad/">2. contain match attribute should be removed</div>
<div class="adDisplay-module_foobar">1. startswith match attribute should be removed</div>
<div class="adDisplay-modul">startswith match attribute should be exist</div>
<div href="https://www.reimageplus.com/foobar">2. startswith match attribute should be removed</div>
<div onclick="location.href='https://1337x.vpnonly.site/">2. startswith match attribute should be removed</div>
</body>
</html>

0 comments on commit 71a204b

Please sign in to comment.