Skip to content

Commit

Permalink
feat: shift left prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
gilesw committed May 4, 2023
1 parent 9432c99 commit 20275de
Showing 1 changed file with 43 additions and 5 deletions.
48 changes: 43 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,22 +1,60 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.3.0
rev: v4.4.0
hooks:
- id: check-added-large-files
name: check for added large files
description: prevents giant files from being committed.
entry: check-added-large-files
language: python
stages: [commit, push, manual]
exclude: ^tx

- repo: local # Use a local repository
- id: check-executables-have-shebangs
name: check that executables have shebangs
description: ensures that (non-binary) executables have a shebang.
entry: check-executables-have-shebangs
language: python
types: [text, executable]
stages: [commit, push, manual]

- id: check-yaml
name: check yaml
description: checks yaml files for parseable syntax.
entry: check-yaml
args: ['--allow-multiple-documents']
language: python
exclude: '.ytt.yaml$'
types: [yaml]

- repo: https://github.com/pre-commit/mirrors-prettier
rev: 'v2.7.1'
hooks:
- id: prettier
types_or: [css, javascript]

- repo: local
hooks:
- id: actionlint
name: Lint GitHub Actions workflow files
description: Runs actionlint to lint GitHub Actions workflow files
name: actionlint
entry: actionlint
language: golang
additional_dependencies:
[github.com/rhysd/actionlint/cmd/[email protected]]
types: ['yaml']
types: [yaml]
files: '^.github/workflows/'

##########
# pre-commit-ci config

ci:
autofix_commit_msg: |
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
autofix_prs: true
autoupdate_branch: ''
autoupdate_commit_msg: '[pre-commit.ci] pre-commit autoupdate'
autoupdate_schedule: weekly
skip: []
submodules: false

0 comments on commit 20275de

Please sign in to comment.