-
-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathpyproject.toml
86 lines (79 loc) · 2.5 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
[project]
name = "neonize"
description = "Add your description here"
readme = "README.md"
requires-python = ">=3.10"
dynamic = ["version"]
dependencies = [
"httpx>=0.28.1",
"linkpreview>=0.11.0",
"phonenumbers>=8.13.52",
"pillow>=11.1.0",
"protobuf>=5.29.3",
"python-magic>=0.4.27 ; sys_platform != 'win32'",
"python-magic-bin>=0.4.14 ; sys_platform == 'win32'",
"requests>=2.32.3",
"segno>=1.6.1",
"tqdm>=4.67.1",
]
[project.urls]
HomePage = "https://github.com/krypton-byte/neonize"
[dependency-groups]
dev = [
"mypy-protobuf>=3.6.0",
"taskipy>=1.14.1",
"types-requests>=2.32.0.20241016",
"wheel>=0.45.1",
]
docs = [
"furo>=2024.8.6",
"myst-parser>=4.0.0",
"sphinx>=8.1.3",
"sphinx-autodoc-typehints>=3.0.0",
]
[tool.taskipy.tasks]
build = {cmd = "uv run python -m tools.goneonize", help = "build goneonize"}
docsbuild = {cmd = "uv run python -m tools.docs", help="build autogen documentation for neonize"}
version = {cmd = "uv run python -m tools.versioning", help = "set neonize & goneonize version"}
download = {cmd = "uv run -m tools.download", help="Download goneonize from github release with specific version"}
repack = {cmd = "uv run -m tools.repack", help="generate wheel with spesific os & arch"}
proto = {cmd = "uv run -m tools.update_proto", help="update whatsapp proto files"}
[tool.uv.workspace]
exclude = ["docs/","goneonize/"]
members = ["neonize/neonize-*"]
[tool.pdm.version]
source = "file"
path = "neonize/__init__.py"
[tool.pdm.build]
includes = ["neonize/", "neonize/neonize-*"]
excludes = ["goneonize"]
# run-setuptools = true
[build-system]
requires = ["pdm-backend"]
build-backend = "pdm.backend"
[tool.ruff]
exclude = [
"proto","*.pyi"
]
line-length = 100
[tool.ruff.format]
# Like Black, use double quotes for strings.
quote-style = "double"
# Like Black, indent with spaces, rather than tabs.
indent-style = "space"
# Like Black, respect magic trailing commas.
skip-magic-trailing-comma = false
# Like Black, automatically detect the appropriate line ending.
line-ending = "auto"
# Enable auto-formatting of code examples in docstrings. Markdown,
# reStructuredText code/literal blocks and doctests are all supported.
#
# This is currently disabled by default, but it is planned for this
# to be opt-out in the future.
docstring-code-format = false
# Set the line length limit used when formatting code snippets in
# docstrings.
#
# This only has an effect when the `docstring-code-format` setting is
# enabled.
docstring-code-line-length = "dynamic"