2022-06-22 12:48:18 +02:00
|
|
|
[build-system]
|
2023-02-18 12:23:50 +01:00
|
|
|
requires = ["hatchling>=1.11.0"]
|
2022-06-22 12:48:18 +02:00
|
|
|
build-backend = "hatchling.build"
|
|
|
|
|
2022-06-21 12:52:09 +02:00
|
|
|
[project]
|
2022-07-23 00:30:28 +02:00
|
|
|
dynamic = ["version"]
|
2022-06-21 12:52:09 +02:00
|
|
|
name = "manga-dlp"
|
|
|
|
description = "A cli manga downloader"
|
|
|
|
readme = "README.md"
|
|
|
|
license = "MIT"
|
|
|
|
requires-python = ">=3.8"
|
2023-02-18 12:23:50 +01:00
|
|
|
authors = [{ name = "Ivan Schaller", email = "ivan@schaller.sh" }]
|
|
|
|
keywords = ["manga", "downloader", "mangadex"]
|
2022-06-21 12:52:09 +02:00
|
|
|
classifiers = [
|
|
|
|
"License :: OSI Approved :: MIT License",
|
|
|
|
"Natural Language :: English",
|
|
|
|
"Operating System :: OS Independent",
|
|
|
|
"Programming Language :: Python :: 3.8",
|
|
|
|
"Programming Language :: Python :: 3.9",
|
|
|
|
"Programming Language :: Python :: 3.10",
|
|
|
|
]
|
|
|
|
dependencies = [
|
2022-12-29 18:13:19 +01:00
|
|
|
"requests>=2.28.0",
|
|
|
|
"loguru>=0.6.0",
|
|
|
|
"click>=8.1.3",
|
|
|
|
"click-option-group>=0.5.5",
|
2023-02-18 12:23:50 +01:00
|
|
|
"xmltodict>=0.13.0",
|
2022-06-21 12:52:09 +02:00
|
|
|
]
|
|
|
|
|
|
|
|
[project.urls]
|
|
|
|
Homepage = "https://github.com/olofvndrhr/manga-dlp"
|
2023-02-18 12:23:50 +01:00
|
|
|
History = "https://github.com/olofvndrhr/manga-dlp/commits/master"
|
|
|
|
Tracker = "https://github.com/olofvndrhr/manga-dlp/issues"
|
|
|
|
Source = "https://github.com/olofvndrhr/manga-dlp"
|
2022-06-21 12:52:09 +02:00
|
|
|
|
|
|
|
[project.scripts]
|
2023-02-18 12:23:50 +01:00
|
|
|
mangadlp = "mangadlp.cli:main"
|
2022-12-29 18:13:19 +01:00
|
|
|
manga-dlp = "mangadlp.cli:main"
|
2022-06-21 12:52:09 +02:00
|
|
|
|
2022-07-23 00:30:28 +02:00
|
|
|
[tool.hatch.version]
|
|
|
|
path = "mangadlp/__about__.py"
|
|
|
|
|
2022-06-25 14:29:09 +02:00
|
|
|
[tool.hatch.build]
|
|
|
|
ignore-vcs = true
|
|
|
|
|
|
|
|
[tool.hatch.build.targets.sdist]
|
2022-07-18 23:45:19 +02:00
|
|
|
packages = ["mangadlp"]
|
2022-06-25 14:29:09 +02:00
|
|
|
|
|
|
|
[tool.hatch.build.targets.wheel]
|
2022-07-18 23:45:19 +02:00
|
|
|
packages = ["mangadlp"]
|
2022-06-25 14:29:09 +02:00
|
|
|
|
2022-08-15 14:44:31 +02:00
|
|
|
[tool.hatch.envs.default]
|
|
|
|
dependencies = [
|
2022-12-29 18:13:19 +01:00
|
|
|
"requests>=2.28.0",
|
|
|
|
"loguru>=0.6.0",
|
|
|
|
"click>=8.1.3",
|
|
|
|
"click-option-group>=0.5.5",
|
2023-02-15 14:21:45 +01:00
|
|
|
"xmltodict>=0.13.0",
|
|
|
|
"xmlschema>=2.2.1",
|
2022-08-15 14:44:31 +02:00
|
|
|
"img2pdf>=0.4.4",
|
2022-12-29 18:18:50 +01:00
|
|
|
"hatch>=1.6.0",
|
|
|
|
"hatchling>=1.11.0",
|
2022-08-15 14:44:31 +02:00
|
|
|
"pytest>=7.0.0",
|
|
|
|
"coverage>=6.3.1",
|
|
|
|
"black>=22.1.0",
|
|
|
|
"mypy>=0.940",
|
|
|
|
"tox>=3.24.5",
|
2023-02-18 12:23:50 +01:00
|
|
|
"ruff>=0.0.247",
|
2022-08-15 14:44:31 +02:00
|
|
|
]
|
|
|
|
|
2023-02-18 12:23:50 +01:00
|
|
|
# mypy
|
2022-06-21 12:52:09 +02:00
|
|
|
|
|
|
|
[tool.mypy]
|
2023-02-18 12:23:50 +01:00
|
|
|
#strict = true
|
|
|
|
python_version = "3.9"
|
|
|
|
disallow_untyped_defs = false
|
|
|
|
follow_imports = "normal"
|
2022-06-21 12:52:09 +02:00
|
|
|
ignore_missing_imports = true
|
2023-02-18 12:23:50 +01:00
|
|
|
warn_no_return = false
|
|
|
|
warn_unused_ignores = true
|
|
|
|
show_error_context = true
|
|
|
|
show_column_numbers = true
|
|
|
|
show_error_codes = true
|
|
|
|
pretty = true
|
|
|
|
no_implicit_optional = false
|
2022-06-21 12:52:09 +02:00
|
|
|
|
2023-02-18 12:23:50 +01:00
|
|
|
# ruff
|
|
|
|
|
|
|
|
[tool.ruff]
|
|
|
|
target-version = "py39"
|
|
|
|
select = [
|
|
|
|
"E", # pycodetyle err
|
|
|
|
"W", # pycodetyle warn
|
|
|
|
"D", # pydocstyle
|
|
|
|
"C90", # mccabe
|
|
|
|
"I", # isort
|
|
|
|
"PLE", # pylint err
|
|
|
|
"PLW", # pylint warn
|
|
|
|
"PLC", # pylint convention
|
|
|
|
"PLR", # pylint refactor
|
|
|
|
"F", # pyflakes
|
|
|
|
"RUF", # ruff specific
|
2022-06-25 14:29:09 +02:00
|
|
|
]
|
2023-02-18 12:23:50 +01:00
|
|
|
line-length = 88
|
|
|
|
fix = true
|
|
|
|
format = "grouped"
|
|
|
|
ignore-init-module-imports = true
|
|
|
|
respect-gitignore = true
|
|
|
|
ignore = ["E501", "D103", "D100"]
|
|
|
|
exclude = [
|
|
|
|
".direnv",
|
|
|
|
".git",
|
|
|
|
".mypy_cache",
|
|
|
|
".ruff_cache",
|
|
|
|
".svn",
|
|
|
|
".venv",
|
|
|
|
"venv",
|
|
|
|
"__pypackages__",
|
|
|
|
"build",
|
|
|
|
"dist",
|
|
|
|
"venv",
|
|
|
|
]
|
|
|
|
|
|
|
|
[tool.ruff.per-file-ignores]
|
|
|
|
"__init__.py" = ["D104"]
|
|
|
|
|
|
|
|
[tool.ruff.pylint]
|
|
|
|
max-args = 10
|
|
|
|
|
|
|
|
[tool.ruff.mccabe]
|
|
|
|
max-complexity = 10
|
|
|
|
|
|
|
|
[tool.ruff.pydocstyle]
|
|
|
|
convention = "google"
|
|
|
|
|
|
|
|
[tool.ruff.pycodestyle]
|
|
|
|
max-doc-length = 88
|
|
|
|
|
|
|
|
# pytest
|
|
|
|
|
|
|
|
[tool.pytest.ini_options]
|
|
|
|
pythonpath = ["."]
|
|
|
|
|
|
|
|
# coverage
|
2022-06-25 14:29:09 +02:00
|
|
|
|
2022-06-21 12:52:09 +02:00
|
|
|
[tool.coverage.run]
|
2023-02-18 12:23:50 +01:00
|
|
|
source = ["mangadlp"]
|
|
|
|
branch = true
|
2022-06-26 15:36:56 +02:00
|
|
|
command_line = "-m pytest --exitfirst"
|
2022-06-21 12:52:09 +02:00
|
|
|
|
|
|
|
[tool.coverage.report]
|
|
|
|
# Regexes for lines to exclude from consideration
|
|
|
|
exclude_lines = [
|
|
|
|
# Have to re-enable the standard pragma
|
|
|
|
"pragma: no cover",
|
|
|
|
# Don't complain about missing debug-only code:
|
|
|
|
"def __repr__",
|
|
|
|
"if self.debug",
|
|
|
|
# Don't complain if tests don't hit defensive assertion code:
|
|
|
|
"raise AssertionError",
|
|
|
|
"raise NotImplementedError",
|
|
|
|
# Don't complain if non-runnable code isn't run:
|
|
|
|
"if 0:",
|
|
|
|
"if __name__ == .__main__.:",
|
|
|
|
# Don't complain about abstract methods, they aren't run:
|
|
|
|
"@(abc.)?abstractmethod",
|
|
|
|
]
|
|
|
|
ignore_errors = true
|