Last active
July 24, 2024 03:23
-
-
Save NathanaelGandhi/a11fa649d2d25516e4829d90bbb744a5 to your computer and use it in GitHub Desktop.
Pre-Commit all the things
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
ci: | |
autofix_prs: false | |
fail_fast: false | |
repos: | |
- repo: https://github.com/pre-commit/pre-commit-hooks | |
rev: v4.6.0 | |
hooks: | |
- id: check-added-large-files | |
- id: check-ast | |
- id: check-case-conflict | |
- id: check-docstring-first | |
- id: check-executables-have-shebangs | |
- id: check-merge-conflict | |
- id: check-shebang-scripts-are-executable | |
- id: check-toml | |
- id: check-vcs-permalinks | |
- id: check-xml | |
- id: check-yaml | |
- id: end-of-file-fixer | |
- id: fix-byte-order-marker | |
- id: mixed-line-ending | |
- id: name-tests-test | |
- id: trailing-whitespace | |
# C || C++ || Cuda | |
- repo: https://github.com/pre-commit/mirrors-clang-format | |
rev: v18.1.8 | |
hooks: | |
- id: clang-format | |
args: [--style=file] | |
types_or: [c++, c, cuda] | |
require_serial: true | |
# GitHub Actions | |
- repo: https://github.com/rhysd/actionlint | |
rev: v1.7.1 | |
hooks: | |
- id: actionlint | |
# JSON | |
- repo: https://gitlab.com/bmares/check-json5 | |
rev: v1.0.0 | |
hooks: | |
- id: check-json5 | |
# Python | |
- repo: https://github.com/psf/black-pre-commit-mirror | |
rev: 24.4.2 | |
hooks: | |
- id: black | |
- repo: https://github.com/asottile/reorder-python-imports | |
rev: v3.13.0 | |
hooks: | |
- id: reorder-python-imports | |
# Shell | |
- repo: https://github.com/shellcheck-py/shellcheck-py | |
rev: v0.10.0.1 | |
hooks: | |
- id: shellcheck | |
args: [-x] | |
# YAML | |
- repo: https://github.com/google/yamlfmt | |
rev: v0.13.0 | |
hooks: | |
- id: yamlfmt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment