summaryrefslogtreecommitdiffstatshomepage
path: root/pyproject.toml
blob: 2d7e21466680d40fbf27a4d6c057926f6a01d9ad (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
[tool.poetry]
name = "hircine"
version = "0.2.0"
description = "A web-based comic organizer"
authors = ["Wolfgang Müller <wolf@oriole.systems>"]
license = "ISC"
include = [{path = "src/hircine/static/**/*"}]

[tool.poetry.scripts]
hircine = 'hircine.cli:main'

[tool.poetry.plugins."hircine.scraper"]
gallery_dl = "hircine.plugins.scrapers.gallery_dl:GalleryDLScraper"
ehentai_api = "hircine.plugins.scrapers.ehentai_api:EHentaiAPIScraper"
anchira_yaml = "hircine.plugins.scrapers.anchira:AnchiraYamlScraper"

[tool.poetry.dependencies]
python = "^3.12"
sqlalchemy = {version = "^2.0.0", extras = ["aiosqlite", "asyncio"]}
strawberry-graphql = "^0.248.1"
starlette = "^0.41.2"
uvicorn = {extras = ["standard"], version = "^0.32.0"}
pillow = "^11.0.0"
blake3 = "^0.4.1"
alembic = "^1.13.1"
requests = "^2.31.0"
pyyaml = "^6.0.1"
natsort = "^8.4.0"

[tool.poetry.group.dev.dependencies]
black = "^24.1.1"
pytest = {extras = ["asyncio"], version = "^8.0.0"}
ruff = "^0.7.3"
types-pillow = "^10.1.0.2"
pytest-cov = "^6.0.0"
sphinx = "^8.1.3"
furo = "^2024.1.29"
sphinx-issues = "^5.0.0"

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

[tool.ruff.lint]
# https://docs.astral.sh/ruff/rules/
select = [
	"F",   # pyflakes
	"E",   # pycodestyle
	"W",   # pycodestyle
	"I",   # isort
	"UP",  # pyupgrade
	"B",   # flake8-bugbear
	"SIM", # flake8-simplify
	"FURB" # refurb
]

ignore = ["B007", "SIM102", "SIM108"]

[tool.pytest.ini_options]
pythonpath = ["src"]

[tool.coverage.html]
directory = "coverage"

[tool.coverage.run]
concurrency = ["greenlet", "multiprocessing"]
omit = ["tests/*", "src/hircine/cli.py", "src/hircine/plugins/scrapers/*"]

[tool.coverage.report]
exclude_also = [
	"if __name__ == \"__main__\":",
	"def __repr__",
	"@(abc\\.)?abstractmethod",
]