From 84cd542e08dc05f3ee98e4200385b3379644423e Mon Sep 17 00:00:00 2001 From: "clara.bayley" Date: Fri, 30 Aug 2024 15:52:47 +0200 Subject: [PATCH] fix: fix formating of precommit --- .pre-commit-config.yaml | 23 +++++++++++------------ docs/source/usage/pybind11.rst | 4 ++-- 2 files changed, 13 insertions(+), 14 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index c23f281..848525a 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -21,14 +21,14 @@ repos: - id: trailing-whitespace name: Trim trailing whitespaces description: Trailing whitespaces are trimmed -- repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.1.4 - hooks: - - id: ruff - args: ["--ignore=E402"] # Ignore E402 error "Module level import not at top of file" - description: python linter - - id: ruff-format - description: python formatter +- repo: https://github.com/astral-sh/ruff-pre-commit + rev: v0.1.4 + hooks: + - id: ruff + args: ["--ignore=E402"] # Ignore E402 error "Module level import not at top of file" + description: python linter + - id: ruff-format + description: python formatter - repo: https://github.com/psf/black-pre-commit-mirror rev: 24.3.0 hooks: @@ -40,9 +40,8 @@ repos: - id: cpplint args: [--linelength=100, "--filter=-runtime/references,-readability/braces,-build/include,-build/c++11"] types_or: [c, c++, cuda] - - repo: https://github.com/compilerla/conventional-pre-commit - rev: +- repo: https://github.com/compilerla/conventional-pre-commit + rev: v3.4.0 hooks: - - id: conventional-pre-commit + - id: conventional-pre-commit stages: [commit-msg] - args: [] \ No newline at end of file diff --git a/docs/source/usage/pybind11.rst b/docs/source/usage/pybind11.rst index e61378a..c1cf913 100644 --- a/docs/source/usage/pybind11.rst +++ b/docs/source/usage/pybind11.rst @@ -30,7 +30,7 @@ To delete the C++ parts of the repository: .. code-block:: console - $ rm -rf libs/src_cxx docs/doxygen CMakeLists.txt test_mock_cxx.py + $ rm -rf libs/src_cxx docs/doxygen CMakeLists.txt test_mock_cxx.py #. In the file ``.github/workflows/CI.yaml`` delete: @@ -41,7 +41,7 @@ To delete the C++ parts of the repository: cmake -S ./ -B ./build cd build && make - and + and .. code-block:: yaml