# Copyright (C) 2025 Siemens # # SPDX-License-Identifier: MIT name: Lint Python Code on: push: branches: - main pull_request: jobs: format: runs-on: ubuntu-24.04 steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0 with: python-version: "3.x" - name: Install dependencies run: | python -m pip install --upgrade pip pip install black - name: Check code formatting with black run: | black --check --diff $(git ls-files '*.py')