forked from bbolli/tumblr-utils
-
Notifications
You must be signed in to change notification settings - Fork 8
/
pyproject.toml
92 lines (83 loc) · 2.48 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
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
[project]
name = "tumblr-backup"
version = "1.0.5"
description = "An advanced tool for backing up Tumblr blogs."
readme = "README.md"
requires-python = ">=3.8"
classifiers = [
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
]
dependencies = [
"filetype~=1.2",
"platformdirs~=4.2",
"requests~=2.31",
"urllib3>=2.2.2,<3",
]
[project.optional-dependencies]
bs4 = ["beautifulsoup4~=4.12", "lxml~=5.1"]
exif = ["py3exiv2~=0.12"]
jq = ["jq~=1.6"]
video = ["yt_dlp>=2023.12.30"]
all = ["tumblr-backup[bs4,exif,jq,video]"]
dev = [
"tumblr-backup[all]",
# dev tools
"flake8~=7.0",
"mypy~=1.9",
"pytype>=2024.2.27",
"wemake-python-styleguide~=0.18",
# type stubs and other optional modules
"lxml-stubs~=0.5",
"pysocks~=1.7",
"types-beautifulsoup4~=4.12",
"types-requests~=2.31",
"youtube_dl>=2021.12.17",
"typing_extensions>=3.10.0.0,<5",
]
[project.urls]
"Homepage" = "https://github.com/cebtenzzre/tumblr-utils"
"Bug Reports" = "https://github.com/cebtenzzre/tumblr-utils/issues"
"Source" = "https://github.com/cebtenzzre/tumblr-utils"
[project.scripts]
tumblr-backup = "tumblr_backup.main:main"
tb-login = "tumblr_backup.login:main"
[build-system]
requires = ["setuptools>=43.0.0", "wheel"]
build-backend = "setuptools.build_meta"
[tool.mypy]
files = 'tumblr_backup'
pretty = true
strict = true
warn_unused_ignores = false
allow_untyped_calls = true
warn_return_any = false
allow_subclassing_any = true
allow_untyped_defs = true
allow_incomplete_defs = true
disable_error_code = ['import-untyped']
[tool.pytype]
inputs = ['tumblr_backup']
jobs = 'auto'
bind_decorated_methods = true
none_is_not_bool = true
overriding_renamed_parameter_count_checks = true
strict_none_binding = true
precise_return = true
# protocols:
# - https://github.com/google/pytype/issues/1423
# - https://github.com/google/pytype/issues/1424
# strict_import: https://github.com/google/pytype/issues/1444
# strict_parameter_checks: https://github.com/google/pytype/issues/365
strict_primitive_comparisons = true
# strict_undefined_checks: too many false positives
[tool.isort]
src_paths = ['tumblr_backup']
line_length = 120
combine_as_imports = true