Skip to content

feature(STEF-1345): rolling aggregate load #1609

feature(STEF-1345): rolling aggregate load

feature(STEF-1345): rolling aggregate load #1609

# SPDX-FileCopyrightText: 2017-2024 Contributors to the OpenSTEF project <korte.termijn.prognoses@alliander.com> # noqa E501
#
# SPDX-License-Identifier: MPL-2.0
# Copied from https://github.com/rickstaa/action-black
# GitHub Action that uses Black to reformat the Python code in an incoming pull request.
# If all Python code in the pull request is compliant with Black then this Action
# does nothing. Otherwise, Black is run and its changes are suggested in the
# incoming pull request. See
# https://github.com/rickstaa/action-black?tab=readme-ov-file#annotate-changes
# for a similar example.
name: Black Format Code
on: [pull_request]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.11']
permissions:
# Give the default GITHUB_TOKEN write permission to the pull request
# so that reviewdog can create annotations.
pull-requests: write
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Check formatting using black
uses: rickstaa/action-black@v1
id: action_black
with:
black_args: "."
- name: Annotate diff changes using reviewdog
if: steps.action_black.outputs.is_formatted == 'true'
uses: reviewdog/action-suggester@v1
with:
tool_name: blackfmt