-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[pre-commit.ci] pre-commit autoupdate
updates: - [github.com/psf/black: 23.9.1 → 24.2.0](psf/black@23.9.1...24.2.0) - [github.com/rhysd/actionlint: v1.6.25 → v1.6.27](rhysd/actionlint@v1.6.25...v1.6.27) - [github.com/kynan/nbstripout: 0.6.1 → 0.7.1](kynan/nbstripout@0.6.1...0.7.1) - [github.com/pre-commit/mirrors-clang-format: v16.0.6 → v18.1.1](pre-commit/mirrors-clang-format@v16.0.6...v18.1.1) - [github.com/abravalheri/validate-pyproject: v0.15 → v0.16](abravalheri/validate-pyproject@v0.15...v0.16)
- Loading branch information
1 parent
949c6c9
commit b7105c0
Showing
1 changed file
with
90 additions
and
1 deletion.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,90 @@ | ||
repos: | ||
- repo: https://github.com/psf/black | ||
rev: 24.2.0 | ||
hooks: | ||
# Run Black - the uncompromising Python code formatter | ||
- id: black | ||
# Run Black - the uncompromising Python code formatter (Jupyter version) | ||
- id: black-jupyter | ||
|
||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.5.0 | ||
hooks: | ||
# Ensure existence of newline characters at file ends | ||
- id: end-of-file-fixer | ||
# Make sure that contained YAML files are well-formed | ||
- id: check-yaml | ||
# Trim trailing whitespace of all sorts | ||
- id: trailing-whitespace | ||
# Apply a file size limit of 500kB | ||
- id: check-added-large-files | ||
# Simple parser validation of e.g. pyproject.toml | ||
- id: check-toml | ||
# Unify file endings | ||
- id: end-of-file-fixer | ||
# Sort lines in requirements files | ||
- id: requirements-txt-fixer | ||
# Check validity of JSON files | ||
- id: check-json | ||
# Format JSON files consistently | ||
- id: pretty-format-json | ||
exclude_types: | ||
- jupyter | ||
args: | ||
- --autofix | ||
# Ensure consistent line endings | ||
- id: mixed-line-ending | ||
|
||
- repo: https://github.com/rhysd/actionlint | ||
rev: v1.6.27 | ||
hooks: | ||
# GitHub Actions Workflow linter | ||
- id: actionlint | ||
|
||
- repo: https://github.com/kynan/nbstripout | ||
rev: 0.7.1 | ||
hooks: | ||
# Make sure that Jupyter notebooks under version control | ||
# have their outputs stripped before committing | ||
- id: nbstripout | ||
files: ".ipynb" | ||
|
||
- repo: https://github.com/cheshirekow/cmake-format-precommit | ||
rev: v0.6.13 | ||
hooks: | ||
# Apply formatting to CMake files | ||
- id: cmake-format | ||
# Apply linting to CMake files | ||
- id: cmake-lint | ||
|
||
- repo: https://github.com/pre-commit/mirrors-clang-format | ||
rev: v18.1.1 | ||
hooks: | ||
# Format C++ code with Clang-Format - automatically applying the changes | ||
- id: clang-format | ||
args: | ||
- --style=Mozilla | ||
|
||
- repo: https://github.com/asottile/setup-cfg-fmt | ||
rev: v2.5.0 | ||
hooks: | ||
# Automatically format/sanitize setup.cfg | ||
- id: setup-cfg-fmt | ||
|
||
- repo: https://github.com/citation-file-format/cffconvert | ||
rev: main | ||
hooks: | ||
# Validate CFF format | ||
- id: validate-cff | ||
|
||
- repo: https://github.com/lovesegfault/beautysh | ||
rev: v6.2.1 | ||
hooks: | ||
# Beautify Bash scripts | ||
- id: beautysh | ||
|
||
- repo: https://github.com/abravalheri/validate-pyproject | ||
rev: v0.16 | ||
hooks: | ||
# Validate the contents of pyproject.toml | ||
- id: validate-pyproject |