Skip to content

Open-source Python library for AI browser agents, plus Browser Use Cloud: stealth browsers and a hosted agent API.

centralize ruff config

Nick Sweeting74e53fb318e1
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 6789a094e..68bfa89bc 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -1,13 +1,10 @@
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
- rev: v0.3.0
+ rev: v0.11.2
hooks:
- id: ruff
- args: [
- --line-length=130,
- --select=E,F,I,
- --fix,
- ]
+ - id: ruff-format
+ # see pyproject.toml for more details on ruff config
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
diff --git a/pyproject.toml b/pyproject.toml
index bda33f1f4..934b3ea5e 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -46,7 +46,9 @@ line-length = 130
fix = true
[tool.ruff.lint]
-select = ["E", "F", "I"]
+select = ["E", "F", "I", "PLE"]
+ignore = ["E101", "E402", "E501"]
+unfixable = ["E101", "E402", "E501", "F841"]
[tool.ruff.format]
quote-style = "single"