Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
55 changes: 55 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -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]
3 changes: 0 additions & 3 deletions source/datainit.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
R"(

"""Dataset initialization

Expand Down Expand Up @@ -204,5 +203,3 @@ def onerror(func, path, info):


init_datasets()

# )"