Files
proxy-scraper-checker/pyproject.toml
T

147 lines
2.9 KiB
TOML
Raw Normal View History

2024-01-21 17:45:01 +00:00
[tool.poetry]
name = "proxy-scraper-checker"
version = "0"
description = ""
license = "MIT"
authors = ["monosans <hsyqixco@protonmail.com>"]
repository = "https://github.com/monosans/proxy-scraper-checker"
classifiers = ["Private :: Do Not Upload"]
[tool.poetry.dependencies]
python = "^3.8"
2024-01-25 14:26:39 +03:00
aiodns = { version = ">=1.1,<4", optional = true }
2024-01-21 17:45:01 +00:00
aiofiles = ">=0.8"
2024-02-01 07:35:08 +03:00
aiohttp = "^3.8.6"
2024-01-21 17:45:01 +00:00
aiohttp-socks = ">=0.7,<0.9"
attrs = ">=22.2"
brotli = { version = "^1", markers = "implementation_name == 'cpython'" }
brotlicffi = { version = "<2", markers = "implementation_name != 'cpython'" }
2024-01-21 17:45:01 +00:00
certifi = "*"
charset-normalizer = ">=2,<4"
maxminddb = ">=1.3,<3"
platformdirs = "<5"
rich = ">=12.3,<14"
tomli = { version = "<3", python = "<3.11" }
typing-extensions = { version = "^4.4", python = "<3.11" }
uvloop = { version = ">=0.14,<0.20", optional = true, markers = "implementation_name == 'cpython' and (sys_platform == 'darwin' or sys_platform == 'linux')" }
2024-01-21 17:45:01 +00:00
[tool.poetry.extras]
2024-01-25 14:26:39 +03:00
non-termux = ["aiodns", "uvloop"]
termux = []
2024-01-21 17:45:01 +00:00
[tool.poetry.group.dev.dependencies]
mypy = "1.8.0"
ruff = "0.2.0"
2024-01-21 17:45:01 +00:00
tomli = "2.0.1"
types-aiofiles = "23.2.0.20240106"
[tool.poetry.group.nuitka]
optional = true
[tool.poetry.group.nuitka.dependencies]
2024-01-29 04:54:52 +00:00
nuitka = "2.0"
2024-01-21 17:45:01 +00:00
2023-02-25 19:31:34 +03:00
[tool.mypy]
2023-06-26 22:56:09 +03:00
python_version = "3.8"
2023-02-25 19:31:34 +03:00
disallow_subclassing_any = false
disallow_untyped_calls = false
disallow_untyped_decorators = false
warn_unreachable = true
local_partial_types = true
enable_error_code = [
2023-07-11 23:34:12 +03:00
"redundant-self",
"redundant-expr",
"possibly-undefined",
"truthy-bool",
"truthy-iterable",
"ignore-without-code",
"unused-awaitable",
2023-11-14 00:44:05 +03:00
"explicit-override",
2023-02-25 19:31:34 +03:00
]
strict = true
2023-02-25 23:10:46 +03:00
[[tool.mypy.overrides]]
module = "aiohttp_socks.*"
ignore_missing_imports = true
2023-02-25 19:31:34 +03:00
[tool.ruff]
ignore = [
2023-10-28 17:41:11 +03:00
"ANN101",
"ANN102",
"ANN401",
2023-07-11 23:34:12 +03:00
"BLE001",
"C901",
2023-10-28 17:41:11 +03:00
"COM812",
2023-10-25 09:42:02 +03:00
"CPY001",
2023-07-11 23:34:12 +03:00
"D100",
"D101",
"D102",
"D103",
"D104",
"D105",
"D106",
"D107",
"D415",
"D417",
"DJ008",
2023-10-25 09:42:02 +03:00
"E203",
2023-07-11 23:34:12 +03:00
"ERA001",
2023-10-28 23:40:44 +03:00
"FBT002",
2023-10-28 17:41:11 +03:00
"ISC001",
2023-07-11 23:34:12 +03:00
"PD901",
"PERF203",
2023-10-25 09:42:02 +03:00
"PLR0904",
2023-07-11 23:34:12 +03:00
"PLR0911",
"PLR0912",
"PLR0913",
"PLR0915",
2023-10-25 09:42:02 +03:00
"PLR0916",
2023-12-07 08:08:12 +00:00
"PLR0917",
2023-07-11 23:34:12 +03:00
"PT012",
"RUF001",
"RUF002",
"RUF003",
2023-10-28 23:40:44 +03:00
"RUF012",
2023-07-11 23:34:12 +03:00
"S110",
"S112",
"S308",
"S311",
"SIM105",
"TCH001",
"TCH002",
"TCH003",
"TID252",
"TRY400",
2023-02-25 19:31:34 +03:00
]
2023-07-11 23:34:12 +03:00
ignore-init-module-imports = true
line-length = 80
2023-10-25 09:42:02 +03:00
preview = true
2023-07-11 23:34:12 +03:00
select = ["ALL"]
2024-01-21 17:45:01 +00:00
target-version = "py38"
2024-01-24 11:42:00 +03:00
typing-modules = ["proxy_scraper_checker.typing_compat"]
2023-02-25 19:31:34 +03:00
2023-07-11 23:59:50 +03:00
[tool.ruff.flake8-self]
ignore-names = []
2023-02-25 19:31:34 +03:00
[tool.ruff.flake8-unused-arguments]
ignore-variadic-names = true
2023-10-25 09:42:02 +03:00
[tool.ruff.format]
line-ending = "lf"
skip-magic-trailing-comma = true
2023-02-25 19:31:34 +03:00
[tool.ruff.isort]
combine-as-imports = true
required-imports = ["from __future__ import annotations"]
2023-10-28 17:41:11 +03:00
split-on-trailing-comma = false
2023-06-30 00:26:37 +03:00
[tool.ruff.pydocstyle]
convention = "google"
2023-07-04 20:47:27 +03:00
[tool.ruff.pyupgrade]
keep-runtime-typing = true
2024-01-21 17:45:01 +00:00
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"