Skip to content

Commit

Permalink
feat: add pre-commit config
Browse files Browse the repository at this point in the history
  • Loading branch information
ankorstore-haddowg committed Mar 8, 2023
1 parent ecac61e commit 3f2f37e
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# orb.yml is "packed" from source, and not published directly from the repository.
orb.yml
.DS_Store
.DS_Store
.idea
27 changes: 27 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.0.1
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-json
- id: check-xml
- id: check-merge-conflict
- id: check-added-large-files
- id: forbid-new-submodules
- id: detect-private-key
- id: check-shebang-scripts-are-executable
- id: check-case-conflict
- repo: https://github.com/koalaman/shellcheck-precommit
rev: v0.8.0
hooks:
- id: shellcheck
args: ["--severity=warning"]
- repo: https://github.com/adrienverge/yamllint.git
rev: v1.17.0
hooks:
- id: yamllint
args: [-c=.yamllint]
4 changes: 2 additions & 2 deletions src/@orb.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ version: 2.1

description: >
This orb provides a set of tools for crafting re-usable workflows.
Such as a command `pass-fast` to assist only rerunning failed nodes of parallel jobs on job retries!
Such as a command `pass-fast` to assist only rerunning failed nodes of parallel jobs on job retries!
display:
source_url: "https://github.com/ankorstore/orb-toolbelt"

0 comments on commit 3f2f37e

Please sign in to comment.