Skip to content

Commit

Permalink
add ruff-format into pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
airkei committed Dec 16, 2024
1 parent 3ffaf90 commit af7d925
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ repos:
hooks:
- id: ruff
args: [--fix]
- id: ruff-format
# Using this mirror lets us use mypyc-compiled black, which is about 2x faster
- repo: https://github.com/psf/black-pre-commit-mirror
rev: 24.10.0
Expand Down
5 changes: 5 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -178,4 +178,9 @@ ignore = [
"E203", # (white space before ':'): this error conflicts with black linting
"E701", # (multiple statements on one line)
"S101", # (use of assert): mostly we use assert for typing
"E303", # (too many blank lines): sometimes we use multiple blank lines for separating sections
]

[tool.ruff.format]
quote-style = "double"
indent-style = "space"

0 comments on commit af7d925

Please sign in to comment.