Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
STYLE: Add black, flake8 GitHub Action linters
  • Loading branch information
thewtex committed Mar 12, 2021
1 parent 05bd86a commit 6dd9407
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 13 deletions.
13 changes: 0 additions & 13 deletions .github/workflows/clang-format-linter.yml

This file was deleted.

29 changes: 29 additions & 0 deletions .github/workflows/lint.yml
@@ -0,0 +1,29 @@
name: Lint

on: [push,pull_request]

jobs:
lint:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1
with:
fetch-depth: 1

- name: Lint C++
uses: InsightSoftwareConsortium/ITKClangFormatLinterAction@master

- name: Set up Python
uses: actions/setup-python@v1
with:
python-version: 3.9

- name: Install Python dependencies
run: pip install black

- name: Lint Python
uses: wearerequired/lint-action@v1
with:
black: true
black_dir: src/

1 comment on commit 6dd9407

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.