Skip to content

Commit

Permalink
Merge pull request #18 from trussworks/rpd-renovate
Browse files Browse the repository at this point in the history
Overhaul renovate.json and pre-commit
  • Loading branch information
rpdelaney authored Jun 2, 2023
2 parents 7990108 + 136befd commit 365d6f7
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 19 deletions.
25 changes: 20 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,31 @@ repos:
- id: check-json
- id: check-yaml
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-merge-conflict
- id: mixed-line-ending
- id: check-yaml

- repo: https://github.com/igorshubovych/markdownlint-cli
rev: v0.34.0
- repo: https://github.com/executablebooks/mdformat
rev: 0.7.16
hooks:
- id: markdownlint
entry: markdownlint --ignore .github/*.md
- id: mdformat
name: fix markdown formatting with mdformat
types: [markdown]
additional_dependencies:
- mdformat-gfm
- mdformat-toc
- mdformat-frontmatter

- repo: https://github.com/trussworks/pre-commit-hooks
rev: v1.1.1
hooks:
- id: markdown-toc
- id: mdspell
- id: spelling-sort

- repo: https://github.com/shellcheck-py/shellcheck-py
rev: v0.9.0.2
hooks:
- id: shellcheck
name: lint shell scripts with shellcheck
types: [shell]
25 changes: 12 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,17 @@
# Truss pre-commit hooks

<!-- toc -->

* [circleci-validate](#circleci-validate)
* [gen-docs](#gen-docs)
* [goreleaser-check](#goreleaser-check)
* [markdown-toc](#markdown-toc)
* [mdspell](#mdspell)
* [spelling-sort](#spelling-sort)
* [hadolint](#hadolint)

<!-- Regenerate with "pre-commit run -a markdown-toc" -->

<!-- tocstop -->
<!-- mdformat-toc start --slug=github --no-anchors --maxlevel=3 --minlevel=1 -->

- [Truss pre-commit hooks](#truss-pre-commit-hooks)
- [circleci-validate](#circleci-validate)
- [gen-docs](#gen-docs)
- [goreleaser-check](#goreleaser-check)
- [markdown-toc](#markdown-toc)
- [mdspell](#mdspell)
- [spelling-sort](#spelling-sort)
- [hadolint](#hadolint)

<!-- mdformat-toc end -->

## circleci-validate

Expand Down
20 changes: 19 additions & 1 deletion renovate.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,23 @@
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
"config:base"
]
],
"labels": [
"dependencies"
],
"packageRules": [
{
"automerge": true,
"matchUpdateTypes": [
"minor",
"patch",
"pin",
"digest"
]
}
],
"pre-commit": {
"enabled": true
},
"separateMinorPatch": false
}

0 comments on commit 365d6f7

Please sign in to comment.