-
-
Notifications
You must be signed in to change notification settings - Fork 306
40 lines (32 loc) · 1.01 KB
/
proselint.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: proselint
on:
# Trigger the workflow on push or pull requests, but only for the
# master branch
push:
branches:
- master
- '*/ci'
pull_request:
branches:
- master
jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: install prereqs
run: sudo apt-get install python3-proselint
- name: trim off quoted parts
run: find . -name "*.md" -print0 | xargs -0 -n1 .github/scripts/cleanmd.pl
# config file help: https://github.com/amperser/proselint/
- name: store proselint config
run: |
echo '{' > $HOME/.proselintrc
echo ' "checks": {' >> $HOME/.proselintrc
echo ' "typography.diacritical_marks": false,' >> $HOME/.proselintrc
echo ' "typography.symbols": false,' >> $HOME/.proselintrc
echo ' "annotations.misc": false' >> $HOME/.proselintrc
echo ' }' >> $HOME/.proselintrc
echo '}' >> $HOME/.proselintrc
- name: check prose
run: make check