generated from rl-institut/rli_template
-
Notifications
You must be signed in to change notification settings - Fork 1
40 lines (31 loc) · 858 Bytes
/
linter.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
# This workflow will run linters with a single version of Python
name: Black
on:
push:
branches:
- main
- dev
- release/*
pull_request:
jobs:
run-linters:
name: Run linters
runs-on: ubuntu-latest
steps:
- name: Check out Git repository
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v1
with:
python-version: "3.10"
- name: Install Python dependencies
run: pip install black==20.8b1 flake8 isort click==8.0.4
- name: Black
if: success() || failure()
run: black --check .
- name: flake8
if: success() || failure()
run: flake8 data_adapter_oemof tests
- name: isort
if: success() || failure()
run: isort --verbose --check-only --diff data_adapter_oemof tests