Skip to content

Commit 43763ec

Browse files
authored
pre-commit add prettier (#220)
1 parent f35619c commit 43763ec

4 files changed

Lines changed: 26 additions & 14 deletions

File tree

.github/dependabot.yml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
11
version: 2
22
updates:
3-
- package-ecosystem: "github-actions"
4-
directory: "/"
3+
- package-ecosystem: 'github-actions'
4+
directory: '/'
55
schedule:
6-
interval: "weekly"
6+
interval: 'weekly'
77
commit-message:
8-
prefix: "ci"
9-
include: "scope"
8+
prefix: 'ci'
9+
include: 'scope'
1010
groups:
1111
github-actions:
1212
patterns:
13-
- "*"
13+
- '*'
1414

15-
- package-ecosystem: "pip"
16-
directory: "/"
15+
- package-ecosystem: 'pip'
16+
directory: '/'
1717
schedule:
18-
interval: "weekly"
18+
interval: 'weekly'
1919
commit-message:
20-
prefix: "deps"
21-
include: "scope"
20+
prefix: 'deps'
21+
include: 'scope'
2222
groups:
2323
python-dependencies:
2424
patterns:
25-
- "*"
25+
- '*'

.github/linters/.yaml-lint.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
---
2-
32
extends: default
43

54
rules:

.github/workflows/codeql-analysis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
# the `language` matrix defined below to confirm you have the correct set of
1010
# supported CodeQL languages.
1111
#
12-
name: "CodeQL"
12+
name: 'CodeQL'
1313

1414
on:
1515
push:

.pre-commit-config.yaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,22 @@
1+
default_stages: [pre-commit, pre-push]
2+
default_language_version:
3+
python: python3
4+
node: 24.12.0
15
repos:
26
- repo: meta
37
hooks:
48
- id: check-hooks-apply
59
name: check that hooks apply
610
description: check that all the hooks apply to the repository
11+
- repo: local
12+
hooks:
13+
- id: prettier
14+
name: run prettier
15+
description: format files with prettier
16+
entry: prettier --write '**/*.yaml' '**/*.yml'
17+
files: \.ya?ml$
18+
language: node
19+
additional_dependencies: ['prettier@3.7.4']
720
- repo: https://github.com/pycqa/isort
821
rev: 7.0.0
922
hooks:

0 commit comments

Comments
 (0)