Skip to content

Commit 1131291

Browse files
committed
fix: enhance pyproject.toml with asyncio fixture loop scope and update Ruff configuration to ignore line length violations in comments and string literals
1 parent 4df9be0 commit 1131291

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

pyproject.toml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ dev = [
5252
testpaths = ["tests"]
5353
python_files = "test_*.py"
5454
asyncio_mode = "auto"
55+
asyncio_default_fixture_loop_scope = "function"
5556

5657
[tool.black]
5758
line-length = 88
@@ -90,14 +91,20 @@ vcs = "git"
9091
style = "pep440"
9192
bump = true
9293

93-
# Added Ruff configuration
9494
[tool.ruff]
9595
line-length = 88
9696
target-version = "py311"
9797

9898
[tool.ruff.lint]
9999
# Enable common Pyflakes, pycodestyle, and isort rules
100100
select = ["E", "F", "W", "I"]
101+
# Ignore line length violations in comments, docstrings, and string literals
102+
extend-ignore = ["E501"]
103+
104+
# Exclude string literals and comments from line length checks
105+
[tool.ruff.lint.per-file-ignores]
106+
"server/server.py" = ["E501"]
107+
"src/browser_use_mcp_server/cli.py" = ["E501"]
101108

102109
[tool.ruff.format]
103110
# Use black-compatible formatting

0 commit comments

Comments
 (0)