-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
171 lines (150 loc) · 4.15 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
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
# [build-system]
# requires = ["setuptools", "wheel"]
# build-backend = "setuptools.build_meta:__legacy__"
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "devsetgo_lib"
version = "0.13.0"
requires-python = ">=3.9"
description = """
DevSetGo Library is a Python library offering reusable functions for efficient coding. It includes file operations, calendar utilities, pattern matching, advanced logging with loguru, FastAPI endpoints, async database handling, and email validation. Designed for ease of use and versatility, it's a valuable tool for Python developers.
"""
keywords = ["python", "library", "reusable functions", "file operations", "calendar utilities", "pattern matching", "logging", "loguru", "FastAPI", "async database", "CRUD operations", "email validation", "development tools"]
readme = "README.md"
authors = [{ name = "Mike Ryan", email = "mikeryan56@gmail.com" }]
maintainers = [
{ name = "Mike Ryan", email = "mikeryan56@gmail.com" }, # Optional
]
license = { file = "LICENSE" }
classifiers = [
"License :: OSI Approved :: MIT License",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Operating System :: POSIX :: Linux",
"Operating System :: POSIX",
"Operating System :: MacOS :: MacOS X",
"Operating System :: Microsoft :: Windows",
]
dependencies = [
"loguru>=0.7.0",
"packaging>=20.0",
"email-validator>=2.1.1"
]
# loguru = ">=0.7.0"
# packaging = ">=20.0"
[project.urls]
Homepage = "https://github.com/devsetgo/devsetgo_lib"
Documentation = "https://devsetgo.github.io/devsetgo_lib/"
Repository = "https://github.com/devsetgo/devsetgo_lib"
[project.optional-dependencies]
postgres = ["asyncpg>=0.21.0", "sqlalchemy>=2.0.10,<2.0.99"]
sqlite = ["aiosqlite>=0.17.0", "sqlalchemy>=2.0.10,<2.0.99"]
oracle = ["cx_Oracle>=8.0.0", "sqlalchemy>=2.0.10,<2.0.99"]
mssql = ["aioodbc>=0.4.1", "sqlalchemy>=2.0.10,<2.0.99"]
fastapi = ["fastapi>=0.100.0", "pydantic[email]>=2.0"]
all = [
"asyncpg>=0.21.0",
"sqlalchemy>=2.0.10,<2.0.99",
"aiosqlite>=0.17.0",
"cx_Oracle>=8.0.0",
"fastapi>=0.100.0",
"pydantic[email]>=2.0",
"aioodbc>=0.4.1",
]
[project.scripts]
# Add your scripts here if any
[tool.hatch.build.targets.sdist]
include = [
"/dsg_lib",
# "/tests",
]
exclude = [
"*.json",
"pkg/_compat.py",
]
[tool.hatch.build.targets.wheel]
packages = ["dsg_lib"]
[tool.ruff]
# Same as Black.
line-length = 100
indent-width = 4
unsafe-fixes = true
# Assume Python 3.8
target-version = "py312"
src = ["dsg_lib", "test"]
exclude = ["unreleased/*","scripts/*","coverage.xml","coverage-badge.svg"] #,"examples/*"
[tool.ruff.lint]
select = [
"C", # mccabe rules
"F", # pyflakes rules
"E", # pycodestyle error rules
"W", # pycodestyle warning rules
"B", # flake8-bugbear rules
]
ignore = [
"C901", # max-complexity-10
"E501", # line-too-long
"B017",
"B904",
"B008",
"I", # isort rules
]
[tool.ruff.format]
indent-style = "space"
quote-style = "single"
[tool.flake8]
max-line-length = 132
max-doc-length = 132
ignore = ["E302","E501"]
exclude = [
".git",
"__pycache__",
"docs",
"build",
"tests",
"_venv",
"htmlcov",
"scripts",
".pytest_cache",
".vscode",
"dist",
"*.egg-info",
]
[tool.isort]
src_paths = ["dsg_lib", "test"]
force_single_line = false
multi_line_output = 3
include_trailing_comma = true
force_grid_wrap = 0
use_parentheses = true
line_length = 100
[tool.coverage.run]
source = ["dsg_lib"]
omit = ["setup.py", "_venv/*", "tests/*", "examples/*"]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"if __name__",
"def main",
"import_sqlalchemy",
]
[tool.pytest.ini_options]
# pythonpath = "dsg_lib"
norecursedirs = ["/tests"]
testpaths = ["tests"]
python_files = ["test_*.py", "*_test.py"]
addopts = [
"--cov=./",
"--cov-report=html",
"--cov-report=xml",
"-ra",
"--strict-markers",
"--tb=short",
"-p pytester",
]