-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
106 lines (100 loc) · 2.77 KB
/
pyproject.toml
File metadata and controls
106 lines (100 loc) · 2.77 KB
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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
[project]
name = "archedbrows"
dynamic = ["version"]
description = "Save text and media. Browse through your archive."
readme = "README.md"
license = "AGPL-3.0-or-later"
authors = [
{ name = "thcrt", email = "110127860+thcrt@users.noreply.github.com" },
]
requires-python = ">=3.13"
dependencies = [
"arrow>=1.3.0",
"flask>=3.1.0",
"flask-migrate>=4.1.0",
"flask-sqlalchemy>=3.1.1",
"gallery-dl-bytes>=2.5.0",
"humanize>=4.11.0",
"pillow>=11.1.0",
"pyav>=14.2.1",
"waitress>=3.0.2",
"yt-dlp[curl-cffi,default]>=2025.1.26",
]
[project.urls]
Source = "https://github.com/thcrt/archedbrows"
Issues = "https://github.com/thcrt/archedbrows/issues"
[dependency-groups]
dev = [
"pyright>=1.1.394",
"python-dotenv>=1.0.1",
"ruff>=0.9.4",
"yt-dlp-types>=0.0.14",
"types-flask-migrate>=4.1.0.20250112",
]
[build-system]
requires = ["hatchling", "hatch-vcs"]
build-backend = "hatchling.build"
[tool.hatch]
version.source = "vcs"
build.hooks.vcs.version-file = "api/archedbrows/_version.py"
build.packages = ["api/archedbrows"]
[tool.pyright]
include = ["api/archedbrows"]
strict = ["**/*"]
ignore = ["**/_version.py"]
deprecateTypingAliases = true
reportCallInDefaultInitializer = "information"
reportImplicitOverride = "warning"
reportImplicitStringConcatenation = "warning"
reportPropertyTypeMismatch = "warning"
reportShadowedImports = "warning"
reportUninitializedInstanceVariable = "warning"
reportUnnecessaryTypeIgnoreComment = "warning"
reportUnusedCallResult = "information"
[tool.ruff]
line-length = 100
lint.select = [
"ERA", # eradicate
"ASYNC", # flake8-async
"S", # flake8-bandit
"BLE", # flake8-blind-except
"FBT", # flake8-boolean-trap
"B", # flake8-bugbear
"A", # flake8-builtins
"C4", # flake8-comprehensions
"EM", # flake8-errmsg
"FA", # flake8-future-annotations
"ISC", # flake8-implicit-str-concat
"LOG", # flake8-logging
"G", # flake8-logging-format
"INP", # flake8-no-pep420
"PIE", # flake8-pie
"T20", # flake8-print
"Q", # flake8-quotes
"RSE", # flake8-raise
"RET", # flake8-return
"SLF", # flake8-self
"SIM", # flake8-simplify
"SLOT", # flake8-slots
"TID", # flake8-tidy-imports
"TC", # flake8-type-checking
"ARG", # flake8-unused-arguments
"PTH", # flake8-use-pathlib
"FLY", # flynt
"I", # isort
"C90", # mccabe
"N", # pep8-naming
"PERF", # perflint
"E", # pycodestyle errors
"W", # pycodestyle warnings
"D", # pydocstyle
"F", # pyflakes
"PL", # pylint
"UP", # pyupgrade
"FURB", # refurb
"RUF", # ruff
"TRY", # tryceratops
]
lint.ignore = ["D100", "D101", "D102", "D103", "D104", "D105", "D106", "D107"]
lint.per-file-ignores = { "migrations/**/*" = ["INP001"] }
lint.pydocstyle.convention = "google"