Skip to content

adding a linter workflow #6

adding a linter workflow

adding a linter workflow #6

Workflow file for this run

name: Check Monorepo Code Styling
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
run-linters-python:
name: Run Python linters
runs-on: ubuntu-latest
steps:
- name: Check out Git repository
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v1
with:
python-version: 3.8
- name: Install Python dependencies
run: pip install autopep8
- name: Run linters
uses: wearerequired/lint-action@v2
with:
Autopep8: true
run-linters-cpp:
name: Run C++ linters
runs-on: ubuntu-latest
steps:
- name: Check out Git repository
uses: actions/checkout@v4
- uses: reviewdog/action-cpplint@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
reporter: github-pr-check
flags: --linelength=100 # Optional
filter: "-readability/braces\
,-whitespace/braces\
,-whitespace/comments\
,-whitespace/indent\
,-whitespace/newline\
,-whitespace/operators\
,-whitespace/parens\
" # Optional