mirror of
https://github.com/OPM/ResInsight.git
synced 2025-01-23 23:13:39 -06:00
ab9e8646db
* Update vcpkg to latest release (2021.05.12) Use https://github.com/microsoft/vcpkg * Update all GHA to latest from dev * Python code linting changes detected by black
24 lines
642 B
YAML
24 lines
642 B
YAML
name: Python Linting
|
|
|
|
on: [push, pull_request]
|
|
|
|
jobs:
|
|
lint:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- uses: actions/setup-python@v2
|
|
- name: (Python) Use black to do linting
|
|
run: |
|
|
pip install black
|
|
cd GrpcInterface
|
|
black .
|
|
- uses: peter-evans/create-pull-request@v3
|
|
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 }}
|