Skip to content

Commit

Permalink
Check PEP8 on CI (tardis-sn#2039)
Browse files Browse the repository at this point in the history
* Add Flake8 job

* Change to file description
  • Loading branch information
epassaro committed Jun 2, 2022
1 parent 66b24f8 commit 345bedc
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 30 deletions.
30 changes: 0 additions & 30 deletions .github/workflows/black.yml

This file was deleted.

48 changes: 48 additions & 0 deletions .github/workflows/codestyle.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
# For more information about TARDIS pipelines, please refer to:
#
# https://tardis-sn.github.io/tardis/development/continuous_integration.html

name: codestyle

on:
push:
branches:
- '*'

pull_request:
branches:
- '*'

jobs:
black:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: 3.x

- name: Install Black
run: pip install black==22.3

- name: Run Black
run: black --check tardis

flake8:
if: false
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: 3.x

- name: Install Flake8
run: pip install flake8==4.0.1 pep8-naming==0.12.1

- name: Run Flake8
run: flake8 tardis

0 comments on commit 345bedc

Please sign in to comment.