From 4b9e919e907b1c60e8637ad3d5b6639ea71d0198 Mon Sep 17 00:00:00 2001 From: Luis Antonio Obis Aparicio Date: Tue, 12 Dec 2023 10:56:46 -0600 Subject: [PATCH 1/2] add .pre-commit-config.yaml --- .pre-commit-config.yaml | 55 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 .pre-commit-config.yaml diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 0000000..347e6e5 --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,55 @@ +ci: + autoupdate_commit_msg: "chore: update pre-commit hooks" + autofix_commit_msg: "style: pre-commit fixes" + +repos: + - repo: https://github.com/pre-commit/pre-commit-hooks + rev: v4.5.0 + hooks: + - id: check-added-large-files + - id: check-case-conflict + - id: check-merge-conflict + - id: check-symlinks + - id: sort-simple-yaml + - id: check-yaml + - id: check-xml + - id: check-ast + - id: check-shebang-scripts-are-executable + - id: requirements-txt-fixer + - id: end-of-file-fixer + - id: mixed-line-ending + - id: trailing-whitespace + - id: debug-statements + - id: name-tests-test + args: [--pytest-test-first] + - id: pretty-format-json + args: [--autofix] + + - repo: https://github.com/psf/black + rev: 23.11.0 + hooks: + - id: black + + - repo: https://github.com/astral-sh/ruff-pre-commit + rev: v0.1.7 + hooks: + - id: ruff + args: [--fix-only, --show-fixes] + + - repo: https://github.com/pre-commit/mirrors-clang-format + rev: v17.0.6 + hooks: + - id: clang-format + + - repo: https://github.com/cheshirekow/cmake-format-precommit + rev: v0.6.13 + hooks: + - id: cmake-format + additional_dependencies: [pyyaml] + + - repo: https://github.com/pre-commit/mirrors-prettier + rev: v4.0.0-alpha.4 + hooks: + - id: prettier + types_or: [yaml, toml, markdown, html, css, scss, javascript, json] + args: [--prose-wrap=always] From 911a83f14f6aa1b9e7ed16e424ad4be72c4660ef Mon Sep 17 00:00:00 2001 From: Luis Antonio Obis Aparicio Date: Tue, 12 Dec 2023 10:59:22 -0600 Subject: [PATCH 2/2] remove unclosed 'R"(' --- source/datainit.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/source/datainit.py b/source/datainit.py index 412af68..6cd5e6f 100644 --- a/source/datainit.py +++ b/source/datainit.py @@ -1,4 +1,3 @@ -R"( """Dataset initialization @@ -204,5 +203,3 @@ def onerror(func, path, info): init_datasets() - -# )"