Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
96 lines (81 loc) · 2.21 KB
/
Copy pathpyproject.toml
File metadata and controls
96 lines (81 loc) · 2.21 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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "dlthub-init"
version = "0.2.11"
description = "Scaffold a dltHub workspace into a new or existing directory."
readme = "README.md"
requires-python = ">=3.10"
license = { file = "LICENSE" }
authors = [
{ name = "dltHub" },
]
classifiers = [
"Development Status :: 4 - Beta",
]
dependencies = [
"rich>=13.7",
"beaupy>=3.9",
"posthog>=3.7",
"tomli>=2.0; python_version < '3.11'",
]
[project.urls]
Homepage = "https://github.com/dlt-hub/dlthub-init"
Repository = "https://github.com/dlt-hub/dlthub-init"
Issues = "https://github.com/dlt-hub/dlthub-init/issues"
[project.optional-dependencies]
dev = [
"pytest>=8",
# Cap below 0.16: it enables new default lint rules that need a separate migration.
"ruff>=0.6,<0.16",
"mypy>=1.10",
]
[project.scripts]
dlthub-init = "dlthub_init.cli:main"
[tool.ruff]
line-length = 120
target-version = "py310"
extend-exclude = ["src/dlthub_init/scaffolds"]
[tool.ruff.lint]
extend-select = ["PLC0415"]
[tool.mypy]
python_version = "3.10"
ignore_missing_imports = false
strict_optional = true
warn_redundant_casts = true
disallow_any_generics = true
disallow_untyped_defs = true
check_untyped_defs = true
warn_return_any = true
namespace_packages = true
warn_unused_ignores = true
show_error_codes = true
files = ["src", "tests", "tests_integration", "scripts"]
mypy_path = "scripts"
exclude = ["src/dlthub_init/scaffolds"]
[[tool.mypy.overrides]]
module = "tests.*"
disallow_untyped_defs = false
warn_return_any = false
[[tool.mypy.overrides]]
module = "tests_integration.*"
disallow_untyped_defs = false
warn_return_any = false
[[tool.mypy.overrides]]
module = "beaupy.*"
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = "posthog.*"
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = "tomli"
ignore_missing_imports = true
[tool.hatch.build.hooks.custom]
path = "hatch_build.py"
[tool.hatch.build.targets.wheel]
packages = ["src/dlthub_init"]
# Ship the single source-of-truth skills/ (repo root) into the wheel without a
# committed duplicate. Read back at runtime as dlthub_init/_bundled_skills.
[tool.hatch.build.targets.wheel.force-include]
"skills" = "dlthub_init/_bundled_skills"