Skip to content

[WIP] Allow SampleOp to take in a dynamic shots value and return a dynamically-shaped result #8696

[WIP] Allow SampleOp to take in a dynamic shots value and return a dynamically-shaped result

[WIP] Allow SampleOp to take in a dynamic shots value and return a dynamically-shaped result #8696

name: Check Code Formatting
on:
pull_request:
branches: [ main ]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
format-python:
name: Python Formatting & Linting
runs-on: ubuntu-22.04
steps:
- name: Install dependencies
run: pip install black isort pylint
- name: Checkout code
uses: actions/checkout@v4
- name: Run black formatter
run: black --check --verbose .
- name: Run isort formatter
run: isort --check --diff .
- name: Run pylint
run: pylint --errors-only frontend
format-cpp:
name: C++ Formatting
runs-on: ubuntu-22.04
steps:
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get -y install clang-format-14
- name: Checkout code
uses: actions/checkout@v4
- name: Run clang-format
run: python3 ./bin/format.py --check --verbose --cfversion 14 .