Skip to content

Commit e35223b

Browse files
committed
add python-semantic-release config to pyproject.toml
1 parent 950dd9a commit e35223b

File tree

1 file changed

+92
-10
lines changed

1 file changed

+92
-10
lines changed

pyproject.toml

Lines changed: 92 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,8 @@ name = "stagehand"
77
version = "0.0.6"
88
description = "Python SDK for Stagehand"
99
readme = "README.md"
10-
license = {text = "MIT"}
11-
authors = [
12-
{name = "Browserbase, Inc.", email = "[email protected]"}
13-
]
10+
license = { text = "MIT" }
11+
authors = [{ name = "Browserbase, Inc.", email = "[email protected]" }]
1412
classifiers = [
1513
"Programming Language :: Python :: 3",
1614
"License :: OSI Approved :: MIT License",
@@ -62,7 +60,7 @@ stagehand = ["domScripts.js"]
6260
line-length = 88
6361

6462
# Target Python version
65-
target-version = "py39" # Adjust to your version
63+
target-version = "py39" # Adjust to your version
6664

6765
# Exclude a variety of commonly ignored directories
6866
exclude = [
@@ -72,7 +70,7 @@ exclude = [
7270
"venv",
7371
".venv",
7472
"dist",
75-
"tests"
73+
"tests",
7674
]
7775

7876
# Define lint-specific settings here
@@ -123,7 +121,7 @@ addopts = [
123121
"--strict-markers",
124122
"--strict-config",
125123
"-ra",
126-
"--tb=short"
124+
"--tb=short",
127125
]
128126
markers = [
129127
"unit: Unit tests for individual components",
@@ -135,13 +133,13 @@ markers = [
135133
"llm: Tests involving LLM interactions",
136134
"mock: Tests using mock objects only",
137135
"performance: Performance and load tests",
138-
"smoke: Quick smoke tests for basic functionality"
136+
"smoke: Quick smoke tests for basic functionality",
139137
]
140138
filterwarnings = [
141139
"ignore::DeprecationWarning",
142140
"ignore::PendingDeprecationWarning",
143141
"ignore::UserWarning:pytest_asyncio",
144-
"ignore::RuntimeWarning"
142+
"ignore::RuntimeWarning",
145143
]
146144
minversion = "7.0"
147145

@@ -179,4 +177,88 @@ force_grid_wrap = 0
179177
use_parentheses = true
180178
ensure_newline_before_comments = true
181179
skip_gitignore = true
182-
skip_glob = ["**/venv/**", "**/.venv/**", "**/__pycache__/**"]
180+
skip_glob = ["**/venv/**", "**/.venv/**", "**/__pycache__/**"]
181+
182+
[tool.semantic_release]
183+
assets = []
184+
build_command_env = []
185+
commit_message = "{version}\n\nAutomatically generated by python-semantic-release"
186+
commit_parser = "conventional"
187+
logging_use_named_masks = false
188+
major_on_zero = true
189+
allow_zero_version = false
190+
no_git_verify = false
191+
tag_format = "v{version}"
192+
193+
[tool.semantic_release.branches.main]
194+
match = "(main|master)"
195+
prerelease_token = "rc"
196+
prerelease = false
197+
198+
[tool.semantic_release.changelog]
199+
changelog_file = ""
200+
exclude_commit_patterns = []
201+
mode = "update"
202+
insertion_flag = "<!-- version list -->"
203+
template_dir = "templates"
204+
205+
[tool.semantic_release.changelog.default_templates]
206+
changelog_file = "CHANGELOG.md"
207+
output_format = "md"
208+
mask_initial_release = true
209+
210+
[tool.semantic_release.changelog.environment]
211+
block_start_string = "{%"
212+
block_end_string = "%}"
213+
variable_start_string = "{{"
214+
variable_end_string = "}}"
215+
comment_start_string = "{#"
216+
comment_end_string = "#}"
217+
trim_blocks = false
218+
lstrip_blocks = false
219+
newline_sequence = "\n"
220+
keep_trailing_newline = false
221+
extensions = []
222+
autoescape = false
223+
224+
[tool.semantic_release.commit_author]
225+
env = "GIT_COMMIT_AUTHOR"
226+
default = "semantic-release <semantic-release>"
227+
228+
[tool.semantic_release.commit_parser_options]
229+
minor_tags = ["feat"]
230+
patch_tags = ["fix", "perf"]
231+
other_allowed_tags = [
232+
"build",
233+
"chore",
234+
"ci",
235+
"docs",
236+
"style",
237+
"refactor",
238+
"test",
239+
]
240+
allowed_tags = [
241+
"feat",
242+
"fix",
243+
"perf",
244+
"build",
245+
"chore",
246+
"ci",
247+
"docs",
248+
"style",
249+
"refactor",
250+
"test",
251+
]
252+
default_bump_level = 0
253+
parse_squash_commits = true
254+
ignore_merge_commits = true
255+
256+
[tool.semantic_release.remote]
257+
name = "origin"
258+
type = "github"
259+
ignore_token_for_push = false
260+
insecure = false
261+
262+
[tool.semantic_release.publish]
263+
dist_glob_patterns = ["dist/*"]
264+
upload_to_vcs_release = true

0 commit comments

Comments
 (0)