Files
proxy-scraper-checker/pyproject.toml
T
monosansGitHubgithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
d45db44c6b 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>
2023-12-07 08:08:12 +00:00

100 lines
1.5 KiB
TOML

[tool.mypy]
python_version = "3.8"
platform = "linux"
disallow_subclassing_any = false
disallow_untyped_calls = false
disallow_untyped_decorators = false
warn_unreachable = true
local_partial_types = true
enable_error_code = [
"redundant-self",
"redundant-expr",
"possibly-undefined",
"truthy-bool",
"truthy-iterable",
"ignore-without-code",
"unused-awaitable",
"explicit-override",
]
strict = true
[[tool.mypy.overrides]]
module = "aiohttp_socks.*"
ignore_missing_imports = true
[tool.ruff]
ignore = [
"ANN101",
"ANN102",
"ANN401",
"BLE001",
"C901",
"COM812",
"CPY001",
"D100",
"D101",
"D102",
"D103",
"D104",
"D105",
"D106",
"D107",
"D415",
"D417",
"DJ008",
"E203",
"ERA001",
"FBT002",
"ISC001",
"PD901",
"PERF203",
"PLR0904",
"PLR0911",
"PLR0912",
"PLR0913",
"PLR0915",
"PLR0916",
"PLR0917",
"PT012",
"RUF001",
"RUF002",
"RUF003",
"RUF012",
"S110",
"S112",
"S308",
"S311",
"SIM105",
"TCH001",
"TCH002",
"TCH003",
"TID252",
"TRY400",
]
ignore-init-module-imports = true
line-length = 80
preview = true
select = ["ALL"]
target-version = "py37"
[tool.ruff.flake8-self]
ignore-names = []
[tool.ruff.flake8-unused-arguments]
ignore-variadic-names = true
[tool.ruff.format]
line-ending = "lf"
skip-magic-trailing-comma = true
[tool.ruff.isort]
combine-as-imports = true
required-imports = ["from __future__ import annotations"]
split-on-trailing-comma = false
[tool.ruff.pydocstyle]
convention = "google"
[tool.ruff.pyupgrade]
keep-runtime-typing = true