-
Notifications
You must be signed in to change notification settings - Fork 25
Expand file tree
/
Copy pathpyproject.toml
More file actions
113 lines (102 loc) · 2.77 KB
/
pyproject.toml
File metadata and controls
113 lines (102 loc) · 2.77 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
113
[project]
name = "dbt-semantic-interfaces"
version = "0.10.5"
description = 'The shared semantic layer definitions that dbt-core and MetricFlow use'
readme = "README.md"
requires-python = ">=3.8"
license = "Apache-2.0"
keywords = []
authors = [{ name = "dbt Labs", email = "info@dbtlabs.com" }]
classifiers = [
"Development Status :: 4 - Beta",
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
]
dependencies = [
"pydantic>=1.10,<3",
"jsonschema>=4.0,<5",
"PyYAML>=6.0,<7",
"more-itertools>=8.0,<11.0",
"Jinja2>=3.1.6,<4",
"click>=7.0,<8.4",
"python-dateutil>=2.0,<3",
"importlib_metadata>=6.0,<9",
"typing-extensions>=4.4,<5",
]
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.sdist]
exclude = [
"/.github",
"/.changes",
".changie.yaml",
".gitignore",
".pre-commit-config.yaml",
"CONTRIBUTING.md",
"MAKEFILE",
"/tests",
]
[tool.hatch.build.targets.wheel]
packages = ["dbt_semantic_interfaces", "dsi_pydantic_shim.py"]
[tool.hatch.envs.dev-env.scripts]
all = ["pre-commit run --all-files"]
[tool.hatch.envs.dev-env]
description = "Env for running development commands like pytest / pre-commit"
dependencies = [
"pytest>=7.3,<8",
"pytest-xdist>=3.2,<4",
"httpx>=0.24,<0.25",
"hypothesis>=6.87,<7",
"pre-commit>=3.2,<4",
"isort>=5.12,<6",
"black>=23.3,<24",
"ruff==0.0.260",
"mypy==1.6.1",
"pydantic>=1.10,<2", # The types in this codebase with mypy checker are only compatible with pydantic 1
"pytest>=7.3,<8",
"types-Jinja2>=2.11,<3",
"types-jsonschema>=4.17,<5",
"types-python-dateutil>=2.8,<3",
"types-PyYAML>=6.0,<7",
]
[tool.ruff]
line-length = 120
select = [
"E", # Pycodestyle
"F", # Pyflakes
"W", # Whitespace
"D", # Pydocs
]
ignore = [
# Missing docstring in public module -- often docs handled within classes
"D100",
# Missing docstring in public package -- often docs handled within files not __init__.py
"D104",
]
# Let ruff autofix these errors.
# F401 - Unused imports.
fixable = ["F401"]
[tool.ruff.pydocstyle]
convention = "google"
[tool.mypy]
mypy_path = "third-party-stubs/"
namespace_packages = true
warn_unused_configs = true
disallow_untyped_defs = true
warn_redundant_casts = true
# Don't run the extensive mypy checks on custom stubs
[[tool.mypy.overrides]]
module = ["logbook.*"]
disallow_untyped_defs = false
[tool.isort]
profile = "black"
[tool.black]
line-length = 120