Skip to content

Commit

Permalink
Update .pre-commit-config.yaml (#111)
Browse files Browse the repository at this point in the history
* Update .pre-commit-config.yaml

* Ignore PLR0917 in ruff

* Reformat

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
monosans and github-actions[bot] authored Dec 7, 2023
1 parent 5829298 commit d45db44
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ repos:
hooks:
- id: prettier
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: v0.1.6
rev: v0.1.7
hooks:
- id: ruff
args:
Expand Down
13 changes: 5 additions & 8 deletions proxy_scraper_checker/proxy.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,11 @@
from .null_context import AsyncNullContext

DEFAULT_CHECK_WEBSITE = "http://ip-api.com/json/?fields=8217"
HEADERS = MappingProxyType(
{
"User-Agent": (
"Mozilla/5.0 (Windows NT 10.0; rv:120.0)"
" Gecko/20100101 Firefox/120.0"
)
}
)
HEADERS = MappingProxyType({
"User-Agent": (
"Mozilla/5.0 (Windows NT 10.0; rv:120.0) Gecko/20100101 Firefox/120.0"
)
})


@dataclass(repr=False, unsafe_hash=True)
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ ignore = [
"PLR0913",
"PLR0915",
"PLR0916",
"PLR0917",
"PT012",
"RUF001",
"RUF002",
Expand Down

0 comments on commit d45db44

Please sign in to comment.