forked from wandb/weave
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
149 lines (135 loc) · 5.03 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
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
[project]
name = "weave"
description = "A toolkit for building composable interactive data driven applications."
readme = "README.md"
license = { text = "Apache-2.0" }
maintainers = [{ name = "W&B", email = "[email protected]" }]
authors = [
{ name = "Shawn Lewis", email = "[email protected]" },
{ name = "Danny Goldstein", email = "[email protected]" },
{ name = "Tim Sweeney", email = "[email protected]" },
{ name = "Nick Peneranda", email = "[email protected]" },
]
classifiers = [
"Development Status :: 4 - Beta",
"Environment :: Web Environment",
"Framework :: Flask",
"Framework :: Jupyter",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Topic :: Database :: Front-Ends",
"Topic :: Office/Business :: Financial :: Spreadsheet",
"Topic :: Scientific/Engineering :: Information Analysis",
"Topic :: Scientific/Engineering :: Visualization",
"Topic :: Software Development :: Libraries :: Application Frameworks",
"Topic :: Software Development :: Widget Sets",
]
requires-python = ">=3.9"
dynamic = ["version", "dependencies", "optional-dependencies"]
[project.scripts]
weave = "weave.cli:cli"
[project.urls]
Company = "https://wandb.com"
Documentation = "https://docs.wandb.com/"
Changes = "https://github.com/wandb/weave/releases"
"Source Code" = "https://github.com/wandb/weave"
"Issue Tracker" = "https://github.com/wandb/weave/issues/"
Twitter = "https://twitter.com/weights_biases"
[build-system]
requires = ["setuptools>=42", "wheel"]
build-backend = "setuptools.build_meta"
[tool.setuptools]
packages = ["weave"]
[tool.setuptools.dynamic]
version = { attr = "weave.version.VERSION" }
dependencies = { file = ["requirements.txt"] }
[tool.setuptools.dynamic.optional-dependencies]
examples = { file = ["requirements.legacy.ecosystem.txt"] }
engine = { file = ["requirements.legacy.engine.txt"] }
ecosystem = { file = ["requirements.legacy.ecosystem.txt"] }
datadog = { file = ["requirements.legacy.datadog.txt"] }
modal = { file = ["requirements.modal.txt"] }
[tool.pytest.ini_options]
testpaths = ["weave"]
filterwarnings = ["error"]
[tool.ruff.lint]
preview = true
select = [
"D200", # https://docs.astral.sh/ruff/rules/fits-on-one-line/
"D201", # https://docs.astral.sh/ruff/rules/no-blank-line-before-function/
"D202", # https://docs.astral.sh/ruff/rules/no-blank-line-after-function/
"D204", # https://docs.astral.sh/ruff/rules/one-blank-line-after-class/
"D210", # https://docs.astral.sh/ruff/rules/surrounding-whitespace/
"D211", # https://docs.astral.sh/ruff/rules/blank-line-before-class/
"D214", # https://docs.astral.sh/ruff/rules/section-not-over-indented/
"FIX001", # https://beta.ruff.rs/docs/rules/#flake8-fixme-fix
"FIX003",
"F541",
"I", # https://docs.astral.sh/ruff/rules/#isort-i
"W291", # https://docs.astral.sh/ruff/rules/trailing-whitespace/
"W391", # https://docs.astral.sh/ruff/rules/too-many-newlines-at-end-of-file/
"F401", # https://docs.astral.sh/ruff/rules/unused-import/
]
ignore = [
"D203", # https://docs.astral.sh/ruff/rules/one-blank-line-before-class/ - we use Google style
"D206", # https://docs.astral.sh/ruff/rules/indent-with-spaces/ - redundant with formatter
"D207", # https://docs.astral.sh/ruff/rules/under-indentation/ - redundant with formatter
"D208", # https://docs.astral.sh/ruff/rules/over-indentation/ - redundant with formatter
"D213", # https://docs.astral.sh/ruff/rules/multi-line-summary-second-line/ - we use Google style
"D215", # https://docs.astral.sh/ruff/rules/section-underline-not-over-indented/ - we use Google style
]
exclude = [
"weave/api.py",
"weave/__init__.py",
"weave/legacy/**/*.py",
"examples",
]
[tool.ruff.lint.isort]
known-third-party = ["wandb"]
[tool.ruff.lint.per-file-ignores]
"weave/tests/*" = ["F401"]
"weave/weave_server.py" = ["F401"]
[tool.ruff]
line-length = 88
show-fixes = true
exclude = [
"weave/query_api.py",
"weave/__init__.py",
"weave/legacy/**/*.py",
"examples",
]
[tool.bumpversion]
current_version = "0.51.10-dev0"
parse = """(?x)
(?P<major>0|[1-9]\\d*)\\.
(?P<minor>0|[1-9]\\d*)\\.
(?P<patch>0|[1-9]\\d*)
(?:
- # dash separator for pre-release section
(?P<pre_l>[a-zA-Z-]+) # pre-release label
(?P<pre_n>0|[1-9]\\d*) # pre-release version number
)? # pre-release section is optional
"""
serialize = [
"{major}.{minor}.{patch}-{pre_l}{pre_n}",
"{major}.{minor}.{patch}",
]
search = "{current_version}"
replace = "{new_version}"
regex = false
ignore_missing_version = false
ignore_missing_files = false
tag = false
sign_tags = false
tag_name = "v{new_version}"
tag_message = "Release version: {current_version} → {new_version}"
allow_dirty = false
commit = false
message = "Release version: {current_version} → {new_version}"
commit_args = ""
[tool.bumpversion.parts.pre_l]
values = ["dev", "final"]
optional_value = "final"