Skip to content

Commit da6ee3f

Browse files
authored
Replace prettier with mdformat and yamlfmt (#260)
Committed via https://github.com/asottile/all-repos
1 parent 90352ab commit da6ee3f

4 files changed

Lines changed: 14 additions & 13 deletions

File tree

.github/workflows/check.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,11 @@ on:
77
pull_request:
88
schedule:
99
- cron: "0 8 * * *"
10-
1110
concurrency:
1211
group: check-${{ github.ref }}
1312
cancel-in-progress: true
14-
1513
permissions:
1614
contents: read
17-
1815
jobs:
1916
test:
2017
runs-on: ubuntu-latest

.github/workflows/release.yaml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,10 @@ name: Release to PyPI
22
on:
33
push:
44
tags: ["*"]
5-
65
permissions:
76
contents: read
8-
97
env:
108
dists-artifact-name: python-package-distributions
11-
129
jobs:
1310
build:
1411
runs-on: ubuntu-latest
@@ -30,7 +27,6 @@ jobs:
3027
with:
3128
name: ${{ env.dists-artifact-name }}
3229
path: dist/*
33-
3430
release:
3531
needs:
3632
- build

.markdownlint.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,5 @@ MD013:
33
headers: false
44
line_length: 120
55
tables: false
6-
76
MD046:
87
style: fenced

.pre-commit-config.yaml

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,20 @@ repos:
2828
- id: ruff-format
2929
- id: ruff
3030
args: ["--fix", "--unsafe-fixes", "--exit-non-zero-on-fix"]
31-
- repo: https://github.com/rbubley/mirrors-prettier
32-
rev: "v3.9.5"
33-
hooks:
34-
- id: prettier
35-
args: ["--print-width=120", "--prose-wrap=always"]
31+
- repo: https://github.com/google/yamlfmt
32+
rev: "v0.21.0"
33+
hooks:
34+
- id: yamlfmt
35+
- repo: local
36+
hooks:
37+
- id: mdformat
38+
name: mdformat
39+
entry: mdformat --wrap 120
40+
language: python
41+
types: [markdown]
42+
additional_dependencies:
43+
- mdformat-gfm>=1
44+
- mdformat-ruff>=0.1.3
3645
- repo: https://github.com/zizmorcore/zizmor-pre-commit
3746
rev: v1.26.1
3847
hooks:

0 commit comments

Comments
 (0)