-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
139 lines (125 loc) · 3.14 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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
[build-system]
requires = ["setuptools>=68.0"]
build-backend = "setuptools.build_meta"
[project]
name = "ddeutil-observe"
description = "Lightweight observation web application"
readme = {file = "README.md", content-type = "text/markdown"}
license = {text = "MIT"}
authors = [{ name = "ddeutils", email = "[email protected]" }]
keywords = ['data', 'observe', 'utility', 'webserver', 'fastapi']
classifiers = [
"Topic :: Utilities",
"Natural Language :: English",
"Development Status :: 4 - Beta",
# "Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
]
requires-python = ">=3.9.13"
dependencies = [
"ddeutil[all]>=0.4.3,<0.5.0",
"python-dotenv==1.0.1",
"fastapi==0.115.0",
"uvicorn==0.32.0",
"jinja2==3.1.4",
"sqlalchemy==2.0.35",
# Authen & Security.
"python-multipart==0.0.12",
"email-validator==2.2.0",
"pyjwt==2.9.0",
"bcrypt==4.2.0",
]
dynamic = ["version"]
[project.optional-dependencies]
test = [
"httpx==0.27.2",
"aiosqlite==0.20.0",
]
[project.urls]
Homepage = "https://github.com/ddeutils/ddeutil-observe/"
"Source Code" = "https://github.com/ddeutils/ddeutil-observe/"
[tool.setuptools.dynamic]
version = {attr = "ddeutil.observe.__about__.__version__"}
[tool.setuptools.packages.find]
where = ["src"]
[tool.shelf.version]
version = "./src/ddeutil/observe/__about__.py"
changelog = "CHANGELOG.md"
[tool.coverage.run]
branch = true
relative_files = true
concurrency = ["thread", "multiprocessing"]
source = ["ddeutil", "tests"]
[tool.coverage.report]
exclude_lines = ["raise NotImplementedError"]
[tool.pytest.ini_options]
pythonpath = ["src"]
console_output_style = "count"
addopts = [
"--strict-config",
"--strict-markers",
]
filterwarnings = ["error"]
log_cli = true
log_cli_level = "DEBUG"
log_cli_format = "%(asctime)s [%(levelname)7s] %(message)s (%(filename)s:%(lineno)s)"
log_cli_date_format = "%Y-%m-%d %H:%M:%S"
[tool.black]
line-length = 80
target-version = ['py39']
exclude = """
(
/(
\\.git
| \\.eggs
| \\.__pycache__
| \\.idea
| \\.ruff_cache
| \\.mypy_cache
| \\.pytest_cache
| \\.venv
| build
| dist
| venv
)/
)
"""
[tool.ruff]
line-length = 80
exclude = [
"__pypackages__",
".git",
".mypy_cache",
".ruff_cache",
".venv",
"build",
"dist",
"venv",
]
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"C", # flake8-comprehensions
"B", # flake8-bugbear
]
ignore = [
"E501", # line too long, handled by black
"B008", # do not perform function calls in argument defaults
"C901", # too complex
]
[tool.ruff.lint.per-file-ignores]
"__init__.py" = [
"F401",
"F403",
]