-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpyproject.toml
115 lines (101 loc) · 4.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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
[build-system]
requires = [
"setuptools", # Core setup tools for building and installing Python packages
"wheel", # Builds wheel archives for your package
"setuptools-scm>=8", # For automated versioning using SCM tags
]
build-backend = "setuptools.build_meta"
[project]
name = "datamimic_ce"
dynamic = ["version"] # Version is determined dynamically via setuptools-scm
authors = [{ name = "Rapiddweller Asia Co., Ltd.", email = "[email protected]" }]
readme = "README.md"
license = { file = "LICENSE.txt" }
keywords = [
"datamimic", "data", "synthetic", "generation", "privacy",
"security", "testing", "modeling"
]
urls = { Homepage = "https://datamimic.io" }
requires-python = ">=3.10"
dependencies = [
"dill==0.3.9", # import dill - Used for pickling
"faker==33.3.1", # from faker import Faker - Used for generating fake data
"mysql-connector-python==8.3.0", # import mysql.connector - Used for MySQL database connections
"numpy==2.2.2", # import numpy as np - Used for numerical operations
"oracledb==2.5.1", # import oracledb - Used for Oracle database connections
"psycopg2-binary==2.9.10", # import psycopg2 - Used for PostgreSQL database connections
"pydantic==2.10.5", # from pydantic import BaseModel - Used for data validation
"pydantic-settings==2.7.1", # from pydantic_settings import BaseSettings - Used for settings management
"pydantic[email]", # from pydantic import EmailStr - Used for email validation
"pymongo==4.10.1", # import pymongo - Used for MongoDB connections
"pyodbc==5.2.0", # import pyodbc - Used for ODBC connections
"python-dotenv==1.0.1", # from dotenv import load_dotenv
"requests==2.32.3", # import requests - Used for making HTTP requests
"sqlalchemy==2.0.37", # from sqlalchemy import create_engine
"xmltodict==0.14.2", # import xmltodict - Used for parsing XML data to Python dictionaries
"pandas==2.2.3", # import pandas as pd - Used for data manipulation
"toml>=0.10.2", # import toml
"typer>=0.12.5", # import typer
"psutil>=6.1.0", # import psutil
"exrex>=0.12.0", # import exrex - Used for generating random strings
"ray>=2.40.0", # import ray - Used for parallel processing
"lxml>=5.3.0", # import lxml - Used for XML Tree
]
[tool.setuptools_scm]
local_scheme = "dirty-tag" # Includes a "dirty" tag in version if working directory is not clean
[project.scripts]
datamimic = "datamimic_ce.cli:app" # Entry point for your CLI application
[tool.setuptools]
include-package-data = true
[tool.setuptools.packages.find]
where = ["."]
exclude = ["tests_ce"]
namespaces = true
[tool.uv]
dev-dependencies = [
"build>=1.2.2.post1", # PEP 517 build frontend for building distributions
"pytest~=8.3.4", # Testing framework
"pytest-xdist~=3.6.1", # Distributed testing (parallel execution)
"pytest-cov~=6.0.0", # Coverage reporting for pytest
"memory-profiler~=0.61.0", # Monitors memory usage during code execution
"ruff>=0.9.2", # Fast Python linter written in Rust
"sqlalchemy-stubs>=0.4",
"prettytable==3.12.0", # from prettytable import PrettyTable
"mypy==1.14.1",
"types-toml>=0.10.8.20240310",
"types-requests>=2.32.0",
"pandas-stubs>=2.2.0",
"types-psutil>=6.0.0",
"types-xmltodict>=0.13.0",
"types-lxml>=5.3.0",
]
[tool.mypy]
python_version = "3.11"
[tool.ruff]
line-length = 120 # Maximum line length
target-version = "py311" # Target Python version for linting
[tool.ruff.lint]
exclude = [".git", "__pycache__", "node_modules", "public", ".venv", "tests_ce"] # Exclude these directories from linting
select = [
# pycodestyle
"E",
# Pyflakes
"F",
# pyupgrade
"UP",
# flake8-bugbear
"B",
# flake8-simplify
"SIM",
# isort
"I",
]
[tool.pytest.ini_options]
markers = ["run: Custom marker for running specific tests"] # Custom markers for pytest
asyncio_mode = "auto"
asyncio_default_fixture_loop_scope = "function"
[tool.pytest]
parallel = true # Enable parallel test execution
addopts = "-n auto --dist=loadscope"
[tool.pyright]
typeCheckingMode="off"