Update .pre-commit-config.yaml (#111)

* Update .pre-commit-config.yaml

* Ignore PLR0917 in ruff

* Reformat

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
This commit is contained in:
monosans
2023-12-07 08:08:12 +00:00
committed by GitHub
co-authored by github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
parent 58292983c8
commit d45db44c6b
3 changed files with 7 additions and 9 deletions
+1 -1
View File
@@ -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:
+5 -8
View File
@@ -13,14 +13,11 @@ from aiohttp_socks import ProxyConnector, ProxyType
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)
+1
View File
@@ -54,6 +54,7 @@ ignore = [
"PLR0913",
"PLR0915",
"PLR0916",
"PLR0917",
"PT012",
"RUF001",
"RUF002",