Skip to content

Commit 6dd9407

Browse files
committed
STYLE: Add black, flake8 GitHub Action linters
1 parent 05bd86a commit 6dd9407

File tree

2 files changed

+29
-13
lines changed

2 files changed

+29
-13
lines changed

.github/workflows/clang-format-linter.yml

Lines changed: 0 additions & 13 deletions
This file was deleted.

.github/workflows/lint.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Lint
2+
3+
on: [push,pull_request]
4+
5+
jobs:
6+
lint:
7+
runs-on: ubuntu-latest
8+
9+
steps:
10+
- uses: actions/checkout@v1
11+
with:
12+
fetch-depth: 1
13+
14+
- name: Lint C++
15+
uses: InsightSoftwareConsortium/ITKClangFormatLinterAction@master
16+
17+
- name: Set up Python
18+
uses: actions/setup-python@v1
19+
with:
20+
python-version: 3.9
21+
22+
- name: Install Python dependencies
23+
run: pip install black
24+
25+
- name: Lint Python
26+
uses: wearerequired/lint-action@v1
27+
with:
28+
black: true
29+
black_dir: src/

0 commit comments

Comments
 (0)