-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
72 lines (61 loc) · 2.01 KB
/
Copy pathpyproject.toml
File metadata and controls
72 lines (61 loc) · 2.01 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
[build-system]
requires = ["setuptools>=64"]
build-backend = "setuptools.build_meta"
[project]
name = "synthetic-data-artist"
version = "0.1.0"
description = "Generate and evaluate synthetic tabular data with Copula and VAE methods."
readme = "README.md"
requires-python = ">=3.10"
license = { file = "LICENSE" }
dependencies = [
"numpy>=1.26,<3",
"pandas>=2.0,<4",
"scikit-learn>=1.3,<2",
"scipy>=1.10,<2",
"matplotlib>=3.7,<4",
"seaborn>=0.13,<0.14",
"PyYAML>=6.0,<7",
]
[project.optional-dependencies]
# Neural VAE generator (python -m synthetic_data_artist.main --method vae).
vae = ["torch>=2.0,<3"]
[project.scripts]
synthetic-data-artist = "synthetic_data_artist.main:main"
[tool.setuptools.packages.find]
include = ["synthetic_data_artist*"]
[tool.ruff]
line-length = 100
target-version = "py310"
[tool.ruff.lint]
# E/F: pyflakes + pycodestyle, I: import sorting, B: bugbear,
# SIM: simplifications, UP: pyupgrade modern-syntax suggestions.
select = ["E", "F", "I", "B", "SIM", "UP"]
[tool.black]
line-length = 100
target-version = ["py310", "py311", "py312"]
[tool.mypy]
python_version = "3.10"
# Third-party scientific libraries (numpy, pandas, sklearn, torch, seaborn, yaml)
# ship without complete type stubs; silence missing-stub noise rather than vendor
# stubs we do not control.
ignore_missing_imports = true
warn_redundant_casts = true
warn_unused_ignores = true
warn_unused_configs = true
# First-party code must be fully annotated.
disallow_untyped_defs = true
disallow_incomplete_defs = true
check_untyped_defs = true
[[tool.mypy.overrides]]
# The VAE module is a thin wrapper over PyTorch, whose runtime objects are
# dynamically typed; requiring annotations on its internal nn.Module helpers
# would add Any-noise without real safety. Strict typing still applies elsewhere.
module = "synthetic_data_artist.models.vae"
disallow_untyped_defs = false
disallow_incomplete_defs = false
[tool.coverage.run]
branch = true
source = ["synthetic_data_artist"]
[tool.coverage.report]
show_missing = true