Skip to content

Commit

Permalink
Fix linter errors
Browse files Browse the repository at this point in the history
  • Loading branch information
dvolodin7 committed Mar 23, 2024
1 parent 7b75d2c commit c1203b0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,7 @@ max-complexity = 15
"D103", # Missing docstring in public function
"D104", # Missing docstring in public package
"S101", # Use of assert detected
"S603", # `subprocess` call: check for execution of untrusted input
"PT011", # {exc} is too broad, set the `match` parameter or use a more specific exception.
"PLR2004", # Magic value used in comparison, consider replacing {value} with a constant variable
"S311", # Standard pseudo-random generators are not suitable for cryptographic purposes
Expand Down
6 changes: 3 additions & 3 deletions tests/test_async_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -553,7 +553,7 @@ def test_invalid_proxy(proxy: Any) -> None:


def test_proxy_connect_timeout() -> None:
async def inner():
async def inner() -> None:
async with HttpClient(
connect_timeout=1.0, proxy=[Proxy(UNROUTABLE_PROXY)]
) as client:
Expand All @@ -564,7 +564,7 @@ async def inner():


def test_proxy_request_timeout(httpd_blackhole: BlackholeHttpd) -> None:
async def inner():
async def inner() -> None:
async with HttpClient(
timeout=1.0, proxy=[Proxy(httpd_blackhole.prefix)]
) as client:
Expand All @@ -575,7 +575,7 @@ async def inner():


def test_proxy_get(httpd: Httpd, proxy: Proxy) -> None:
async def inner():
async def inner() -> None:
async with HttpClient(
connect_timeout=1.0, timeout=3.0, proxy=[Proxy(proxy.url)]
) as client:
Expand Down
1 change: 0 additions & 1 deletion tests/tinyproxy.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
import queue
import subprocess
import threading
import time
from pathlib import Path
from tempfile import TemporaryDirectory
from types import TracebackType
Expand Down

0 comments on commit c1203b0

Please sign in to comment.