Files
ResInsight/.github/workflows/python-linting.yml
Magne Sjaastad 2cd7576413 Update files
2022-10-13 20:09:08 +02:00

24 lines
642 B
YAML

name: Python Linting
on: [push, pull_request]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
- name: (Python) Use black to do linting
run: |
pip install black
cd GrpcInterface
black .
- uses: peter-evans/create-pull-request@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
commit-message: "Python code linting changes detected by black"
title: "Fixes by black (Python)"
branch: python-black-patches
branch-suffix: random
base: ${{ github.head_ref }}