Skip to content

Commit

Permalink
replace black with ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
m-fila committed Nov 12, 2024
1 parent befeb60 commit 72ef66c
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 6 deletions.
9 changes: 6 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,10 @@ repos:
"-x", ".github/*", ".pre-commit-config.yaml", "README.md",
"doc/ReleaseNotes.md", ".k4fwcore-ci.d/*",
"-f"]
- repo: https://github.com/psf/black
rev: 23.11.0
- repo: local
hooks:
- id: black
- id: ruff-format
name: ruff-format
entry: ruff format --force-exclude
types: [python]
language: system
10 changes: 10 additions & 0 deletions .ruff.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
target-version = "py311"

line-length = 99

[format]
# Make things format the same way as black
quote-style = "double"
indent-style = "space"
skip-magic-trailing-comma = false
line-ending = "auto"
3 changes: 0 additions & 3 deletions pyproject.toml

This file was deleted.

0 comments on commit 72ef66c

Please sign in to comment.