-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
67 lines (56 loc) · 1.55 KB
/
pyproject.toml
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
[project]
name = "matrix-nsfwbot"
version = "0.2.1"
description = "A Matrix bot plugin that detects NSFW content in images and can automatically redact them"
readme = "README.md"
requires-python = ">=3.13"
license = "AGPL-3.0-or-later"
authors = [{ name = "Tom Foster", email = "tom@tcpip.uk" }]
maintainers = [{ name = "Tom Foster", email = "tom@tcpip.uk" }]
dependencies = [
"beautifulsoup4>=4.13.3",
"nsfwdetection>=1.0.2",
"pillow>=11.1.0",
]
[project.urls]
"Homepage" = "https://github.com/tcpipuk/matrix-nsfwbot"
"Bug Tracker" = "https://github.com/tcpipuk/matrix-nsfwbot/issues"
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.wheel]
packages = ["nsfwbot"]
[tool.pytest.ini_options]
asyncio_mode = "auto"
asyncio_default_fixture_loop_scope = "session"
cache_dir = "/tmp/.pytest_cache"
testpaths = "tests"
[tool.ruff]
cache-dir = "/tmp/.ruff_cache"
fix = true
line-length = 100
target-version = "py313"
unsafe-fixes = true
[tool.ruff.format]
skip-magic-trailing-comma = true
[tool.ruff.lint]
select = ["ALL"]
ignore = ["B019", "BLE001", "COM812"]
[tool.ruff.lint.isort]
combine-as-imports = true
required-imports = ["from __future__ import annotations"]
split-on-trailing-comma = false
[tool.ruff.lint.per-file-ignores]
"tests/*" = ["PLR2004", "SLF001"]
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.uv]
dev-dependencies = [
"maubot>=0.5.1",
"pytest>=8.3.4",
"pytest-aiohttp>=1.1.0",
"pytest-asyncio>=0.25.3",
"pytest-timeout>=2.3.1",
"ruff>=0.9.7",
]
link-mode = "copy"