Make mypy config strict and work on pre-commit

This commit is contained in:
Ayaz Salikhov
2022-03-08 23:23:13 +03:00
parent cfcf11aefe
commit b487d1afbe
5 changed files with 33 additions and 9 deletions

View File

@@ -11,7 +11,7 @@ from docker.models.containers import Container
import pytest # type: ignore
import requests
from requests.packages.urllib3.util.retry import Retry
from urllib3.util.retry import Retry
from requests.adapters import HTTPAdapter
@@ -23,7 +23,7 @@ def find_free_port() -> str:
with closing(socket.socket(socket.AF_INET, socket.SOCK_STREAM)) as s:
s.bind(("", 0))
s.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
return s.getsockname()[1]
return s.getsockname()[1] # type: ignore
@pytest.fixture(scope="session")