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

tooling: black & isort → ruff

parent 068c6c88
No related branches found
No related tags found
No related merge requests found
ci:
autoupdate_branch: devel
repos:
- repo: https://github.com/PyCQA/isort
rev: 5.12.0
hooks:
- id: isort
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: v0.1.4
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.3.3
hooks:
- id: ruff
args:
- --fix
- --exit-non-zero-on-fix
- id: ruff-format
- repo: https://github.com/cheshirekow/cmake-format-precommit
rev: v0.6.13
hooks:
......@@ -22,7 +19,7 @@ repos:
- id: toml-sort-fix
exclude: poetry.lock
- repo: https://github.com/pre-commit/mirrors-clang-format
rev: v17.0.4
rev: v18.1.1
hooks:
- id: clang-format
args:
......@@ -45,7 +42,3 @@ repos:
- id: fix-byte-order-marker
- id: mixed-line-ending
- id: trailing-whitespace
- repo: https://github.com/psf/black
rev: 23.10.1
hooks:
- id: black
......@@ -16,8 +16,11 @@ license = "BSD-2-Clause"
name = "hpp-statistics"
version = "5.0.0"
[tool.isort]
profile = "black"
[tool.ruff]
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