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:
co-authored by
github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
parent
58292983c8
commit
d45db44c6b
@@ -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:
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -54,6 +54,7 @@ ignore = [
|
||||
"PLR0913",
|
||||
"PLR0915",
|
||||
"PLR0916",
|
||||
"PLR0917",
|
||||
"PT012",
|
||||
"RUF001",
|
||||
"RUF002",
|
||||
|
||||
Reference in New Issue
Block a user