Skip to content

Commit

Permalink
Reconfigure tooling
Browse files Browse the repository at this point in the history
  • Loading branch information
monosans committed Feb 7, 2024
1 parent 4669636 commit 73100a7
Show file tree
Hide file tree
Showing 3 changed files with 92 additions and 105 deletions.
20 changes: 20 additions & 0 deletions mypy.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
[mypy]
python_version = 3.8
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

[mypy-aiohttp_socks.*]
ignore_missing_imports = True
109 changes: 4 additions & 105 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"

[tool.poetry]
name = "proxy-scraper-checker"
version = "0"
Expand Down Expand Up @@ -40,108 +44,3 @@ optional = true

[tool.poetry.group.nuitka.dependencies]
nuitka = "2.0.1"

[tool.mypy]
python_version = "3.8"
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",
"FURB180",
"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 = "py38"
typing-modules = ["proxy_scraper_checker.typing_compat"]

[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

[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
68 changes: 68 additions & 0 deletions ruff.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
line-length = 80
preview = true
target-version = "py38"

[format]
docstring-code-format = true
line-ending = "lf"
skip-magic-trailing-comma = true

[lint]
ignore = [
"ANN401",
"BLE001",
"C901",
"COM812",
"CPY001",
"D100",
"D101",
"D102",
"D103",
"D104",
"D105",
"D106",
"D107",
"D415",
"D417",
"DJ008",
"FURB180",
"ISC001",
"PLR0904",
"PLR0911",
"PLR0912",
"PLR0913",
"PLR0914",
"PLR0915",
"PLR0916",
"PLR0917",
"RUF001",
"RUF002",
"RUF003",
"S110",
"S112",
"S308",
"S311",
"SIM105",
"TCH001",
"TCH002",
"TCH003",
"TID252",
"TRY400",
]
ignore-init-module-imports = true
select = ["ALL"]
typing-modules = ["proxy_scraper_checker.typing_compat"]

[lint.flake8-self]
ignore-names = []

[lint.isort]
combine-as-imports = true
required-imports = ["from __future__ import annotations"]
split-on-trailing-comma = false

[lint.pydocstyle]
convention = "google"

[lint.pyupgrade]
keep-runtime-typing = true

0 comments on commit 73100a7

Please sign in to comment.