Skip to content

Commit 69d51c9

Browse files
committed
Run black and codespell as Github Actions
1 parent f58a256 commit 69d51c9

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

.github/workflows/lint.yaml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Linters
2+
3+
on:
4+
push:
5+
pull_request:
6+
7+
jobs:
8+
black:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v2
12+
- name: Set up Python
13+
uses: actions/setup-python@v2
14+
- name: Install dependencies
15+
run: |
16+
python -m pip install --upgrade pip
17+
pip install black codespell
18+
- name: Check with black
19+
run: black --check .
20+
21+
codespell:
22+
runs-on: ubuntu-latest
23+
steps:
24+
- uses: actions/checkout@v2
25+
- uses: codespell-project/actions-codespell@master
26+
with:
27+
skip: '*.po'
28+
ignore_words_list: ba,te,deltion

0 commit comments

Comments
 (0)