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

flake8 + black → ruff

parent 56c1405c
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/flake8 - repo: https://github.com/astral-sh/ruff-pre-commit
rev: 7.1.0 rev: v0.4.8
hooks: hooks:
- id: flake8 - id: ruff
args:
- --fix
- --exit-non-zero-on-fix
- --ignore
- UP036
- 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:
- id: cmake-format - id: cmake-format
- repo: https://github.com/pappasam/toml-sort
rev: v0.23.1
hooks:
- id: toml-sort-fix
- repo: https://github.com/pre-commit/mirrors-clang-format - repo: https://github.com/pre-commit/mirrors-clang-format
rev: v18.1.8 rev: v18.1.8
hooks: hooks:
...@@ -30,8 +40,4 @@ repos: ...@@ -30,8 +40,4 @@ repos:
- id: end-of-file-fixer - id: end-of-file-fixer
- id: mixed-line-ending - id: mixed-line-ending
- id: trailing-whitespace - id: trailing-whitespace
- repo: https://github.com/psf/black
rev: 24.4.2
hooks:
- id: black
exclude: tests/test_python-syntax_error.py exclude: tests/test_python-syntax_error.py
[tool.isort] [tool.ruff]
line_length = 88 extend-exclude = ["cmake"]
[tool.ruff.lint]
extend-select = ["I", "NPY", "RUF", "UP", "W"]
[tool.ruff.lint.isort]
known-first-party = ["example_robot_data"]
[tool.tomlsort]
all = true
[flake8]
max-line-length = 88
exclude = tests/test_python-syntax_error.py
ignore = E226, E704, E24, E121, W504, E126, E123, W503, E203
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