Skip to content
Snippets Groups Projects
Commit 0c279c79 authored by Guilhem Saurel's avatar Guilhem Saurel
Browse files

tooling: black & isort → ruff

parent edf30ad2
No related branches found
No related tags found
No related merge requests found
ci: ci:
autoupdate_branch: devel autoupdate_branch: devel
repos: repos:
- repo: https://github.com/PyCQA/isort - repo: https://github.com/astral-sh/ruff-pre-commit
rev: 5.12.0 rev: v0.3.3
hooks:
- id: isort
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: v0.1.4
hooks: hooks:
- id: ruff - id: ruff
args: args:
- --fix - --fix
- --exit-non-zero-on-fix - --exit-non-zero-on-fix
- id: ruff-format
- repo: https://github.com/cheshirekow/cmake-format-precommit - repo: https://github.com/cheshirekow/cmake-format-precommit
rev: v0.6.13 rev: v0.6.13
hooks: hooks:
...@@ -22,7 +19,7 @@ repos: ...@@ -22,7 +19,7 @@ repos:
- id: toml-sort-fix - id: toml-sort-fix
exclude: poetry.lock exclude: poetry.lock
- repo: https://github.com/pre-commit/mirrors-clang-format - repo: https://github.com/pre-commit/mirrors-clang-format
rev: v17.0.4 rev: v18.1.1
hooks: hooks:
- id: clang-format - id: clang-format
args: args:
...@@ -45,7 +42,3 @@ repos: ...@@ -45,7 +42,3 @@ repos:
- id: fix-byte-order-marker - id: fix-byte-order-marker
- id: mixed-line-ending - id: mixed-line-ending
- id: trailing-whitespace - id: trailing-whitespace
- repo: https://github.com/psf/black
rev: 23.10.1
hooks:
- id: black
...@@ -16,5 +16,11 @@ license = "BSD-2-Clause" ...@@ -16,5 +16,11 @@ license = "BSD-2-Clause"
name = "hpp-manipulation" name = "hpp-manipulation"
version = "5.0.0" version = "5.0.0"
[tool.isort] [tool.ruff]
profile = "black" extend-exclude = ["cmake"]
[tool.ruff.lint]
extend-select = ["I", "NPY", "RUF", "UP", "W"]
[tool.tomlsort]
all = true
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment