eggplants/getjump

View on GitHub
pyproject.toml

Summary

Maintainability
Test Coverage
# poetry self add poetry-bumpversion

[build-system]
build-backend = "poetry.core.masonry.api"
requires = [
  "poetry-core",
]

[tool.poetry]
authors = [
  "eggplants <w10776e8w@yahoo.co.jp>",
]
classifiers = [
  "License :: OSI Approved :: MIT License",
  "Programming Language :: Python",
  "Programming Language :: Python :: 3",
  "Programming Language :: Python :: 3 :: Only",
  "Programming Language :: Python :: Implementation :: CPython",
]
description = "Get and save images from jump web viewer"
keywords = [
  "downloader",
  "cli",
  "manga",
]
name = "getjump"
packages = [
  { include = "getjump" },
]
license = "MIT"
readme = "README.md"
repository = "https://github.com/eggplants/getjump"
version = "2.4.2"

[tool.poetry.dependencies]
python = ">=3.8,<4"
beautifulsoup4 = "^4.11.2"
pillow = ">=9.4,<11.0"
rich = "^13.3.2"
requests = "^2.28.2"

[tool.poetry.group.dev.dependencies]
mypy = ">=0.991,<1.11"
pre-commit = ">=2.20,<4.0"
taskipy = "^1.10.3"
types-pillow = ">=9.4.0.17,<11.0.0.0"
types-beautifulsoup4 = "^4.11.6.7"
types-requests = "^2.28.11.15"
pytest = ">=7.2.2,<9.0.0"
pytest-cov = ">=4,<6"

[tool.poetry.scripts]
getjump = "getjump.main:main"
jget = "getjump.main:main"

[tool.black]
line-length = 120
target-version = [
  'py39',
]

[tool.ruff]
line-length = 120

select = [
  "ALL",
]
ignore = [
  "D",
  "ANN101",
]
per-file-ignores."main.py" = [
  "T201", # `print` found
]
per-file-ignores."tests/*test_*.py" = [
  "INP001", # File tests/test_*.py is part of an implicit namespace package. Add an __init__.py.
  "S101",   # Use of assert detected
]
mccabe.max-complexity = 18

[tool.mypy]
pretty = true
python_version = "3.9"
show_error_codes = true
strict = true

[tool.pyright]
pythonVersion = "3.9"
typeCheckingMode = "strict"

[tool]

[tool.pytype]
python_version = '3.10'
jobs = '4'
report_errors = true
precise_return = true
protocols = true
strict_import = true

[tool.poetry_bumpversion.file."getjump/__init__.py"]

[tool.taskipy.tasks]
test = "pytest --cov=getjump --cov-report=term"
"test:ci" = "task test --cov-report=xml:cov.xml"
lint = "pre-commit run -a"
profile = "python -m cProfile"