Skip to content

Commit

Permalink
ci/lint: fix calling Ruff's format
Browse files Browse the repository at this point in the history
  • Loading branch information
Borda committed May 1, 2024
1 parent 0c2ebfd commit b74e00e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 3 additions & 3 deletions dev_config/python/.pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,16 @@ repos:

- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.3.7
rev: v0.4.1
hooks:
# Run the linter.
- id: ruff
entry: ruff check --config dev_config/python/ruff.toml opendevin/ agenthub/
entry: ruff check --config dev_config/python/ruff.toml
types_or: [python, pyi, jupyter]
args: [--fix]
# Run the formatter.
- id: ruff-format
entry: ruff check --config dev_config/python/ruff.toml opendevin/ agenthub/
entry: ruff format --config dev_config/python/ruff.toml
types_or: [python, pyi, jupyter]

- repo: https://github.com/pre-commit/mirrors-mypy
Expand Down
4 changes: 3 additions & 1 deletion dev_config/python/ruff.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ ignore = [
"E501",
]

flake8-quotes = {inline-quotes = "single"}
[lint.flake8-quotes]
docstring-quotes = "double"
inline-quotes = "single"

[format]
quote-style = "single"

0 comments on commit b74e00e

Please sign in to comment.