-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathpyproject.toml
More file actions
112 lines (98 loc) · 2.43 KB
/
pyproject.toml
File metadata and controls
112 lines (98 loc) · 2.43 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
107
108
109
110
111
112
[project]
name = "dbcut"
version = "0.7.0"
description = "Extract a lightweight subset of your relational production database for development and testing purpose."
readme = "README.rst"
requires-python = ">=3.10"
license = { text = "MIT license" }
authors = [
{ name = "Salem Harrache", email = "dev@salem.harrache.info" },
]
keywords = ["dbcut"]
classifiers = [
"Development Status :: 2 - Pre-Alpha",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Natural Language :: English",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
]
dependencies = [
"click==8.3.1",
"sqlalchemy==2.0.44",
"mlalchemy==0.2.2",
"pptree==3.1",
"python-dotenv==1.2.1",
"tabulate==0.9",
"tqdm==4.67.1",
]
[dependency-groups]
dev = [
"pdbpp==0.11.7",
"twine==6.2.0",
"jinja2==3.1.6",
"pyyaml==6.0.3",
"pytest==9.0.1",
"pytest-cov==7.0.0",
"pytest-sugar==1.1.1",
"coverage==7.12.0",
]
[project.optional-dependencies]
mysql = ["mysqlclient==2.2.7"]
postgresql = ["psycopg2-binary==2.9.11"]
profiler = [
"sqlalchemy-easy-profile==1.3.0",
"sqlparse==0.5.3",
]
fastjson = ["orjson==3.11.4"]
[project.scripts]
dbcut = "dbcut.cli.main:main"
[project.urls]
Homepage = "https://github.com/itsolutionsfactory/dbcut"
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.uv]
package = true
[tool.hatch.build.targets.wheel]
packages = ["dbcut"]
[tool.ruff]
line-length = 120
target-version = "py310"
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"UP", # pyupgrade
]
ignore = [
"E722", # bare except
"UP031", # use format specifiers instead of percent format
]
[tool.ruff.lint.isort]
known-first-party = ["dbcut"]
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = ["test_*.py"]
python_classes = ["Test*"]
python_functions = ["test_*"]
[tool.coverage.run]
source = ["dbcut"]
omit = ["*/tests/*", "*/test_*.py"]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"def __repr__",
"raise AssertionError",
"raise NotImplementedError",
"if __name__ == .__main__.:",
]