Skip to content

Commit

Permalink
Add ruff as pre-commit for ROS style on black repo
Browse files Browse the repository at this point in the history
  • Loading branch information
nachovizzo committed Jan 15, 2024
1 parent 6e3441a commit 25639c8
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 8 deletions.
15 changes: 7 additions & 8 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,16 @@ repos:
- id: mixed-line-ending
- id: trailing-whitespace

- repo: https://github.com/psf/black
rev: 22.3.0
hooks:
- id: black

- repo: https://github.com/cheshirekow/cmake-format-precommit
rev: v0.6.10
hooks:
- id: cmake-format

- repo: https://github.com/pycqa/isort
rev: 5.12.0
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.1.13
hooks:
- id: isort
# Sort Imports
- id: ruff
args: [--select, I, --fix]
# "Black" format, with single quotes
- id: ruff-format
5 changes: 5 additions & 0 deletions ruff.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
line-length = 100

[format]
quote-style = "single"
docstring-code-format = true

0 comments on commit 25639c8

Please sign in to comment.