From d06579a5146da4468bd09fae39378c0d49cc5ef0 Mon Sep 17 00:00:00 2001 From: monosans Date: Sat, 25 Feb 2023 23:10:46 +0300 Subject: [PATCH] Reconfigure mypy --- .pre-commit-config.yaml | 2 -- pyproject.toml | 5 ++++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 6c32d7b..985da66 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -37,8 +37,6 @@ repos: - id: mypy args: [] additional_dependencies: - - aiodns>=3.0,<4 - - aiohttp-socks>=0.7,<0.9 - aiohttp>=3.8,<4 - rich>=12.3,<14 - uvloop>=0.16,<0.18; implementation_name == 'cpython' and (sys_platform == 'darwin' or sys_platform == 'linux') diff --git a/pyproject.toml b/pyproject.toml index 4ebe9d7..82d7660 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,6 @@ skip-magic-trailing-comma = true preview = true [tool.mypy] -ignore_missing_imports = true python_version = "3.7" disallow_subclassing_any = false disallow_untyped_calls = false @@ -21,6 +20,10 @@ enable_error_code = [ ] strict = true +[[tool.mypy.overrides]] +module = "aiohttp_socks.*" +ignore_missing_imports = true + [tool.ruff] target-version = "py37" select = ["ALL"]