manga-scans-fetcher/pyproject.toml
2024-04-13 11:59:34 +02:00

73 lines
1.5 KiB
TOML

[tool.poetry]
name = "manga-scan-fetcher"
version = "0.1.0"
description = ""
authors = ["Mikaël Capelle <capelle.mikael@gmail.com>"]
license = "MIT"
readme = "README.md"
packages = [{ "include" = "holt59", from = "src" }]
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.poetry.dependencies]
python = "^3.10"
img2pdf = "^0.5.1"
pillow = "^10.3.0"
bs4 = "^0.0.2"
[tool.poetry.group.dev.dependencies]
poethepoet = "^0.25.0"
black = "^24.3.0"
flake8 = "^7.0.0"
flake8-black = "^0.3.6"
mypy = "^1.9.0"
pyright = "^1.1.358"
ruff = "^0.3.7"
types-beautifulsoup4 = "^4.12.0.20240229"
types-pillow = "^10.2.0.20240406"
[tool.flake8]
max-line-length = 88
# See https://github.com/PyCQA/pycodestyle/issues/373
extend-ignore = ['E203', 'E231']
[tool.poetry.scripts]
manga-scan = "holt59.scans.__main__:main"
[tool.poe.tasks]
lint-black = "black --check --diff src typings"
lint-isort = "isort -c src typings"
lint-mypy = "mypy src typings"
lint-ruff = "ruff check src typings"
lint-pyright = "pyright src typings"
lint-all.sequence = [
"lint-black",
"lint-isort",
"lint-mypy",
"lint-ruff",
"lint-pyright",
]
lint-all.ignore_fail = "return_non_zero"
[tool.isort]
profile = "black"
multi_line_output = 3
[tool.mypy]
warn_return_any = true
warn_unused_configs = true
check_untyped_defs = true
[[tool.mypy.overrides]]
module = "img2pdf.*"
ignore_missing_imports = true
[tool.ruff]
line-length = 88
target-version = "py311"
[tool.pyright]
exclude = ["lib", "**/.*", "venv", "build"]
typeCheckingMode = "strict"