Skip to content

Commit

Permalink
Update format-check.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshuaSBrown authored Feb 12, 2025
1 parent df7884e commit be2e909
Showing 1 changed file with 0 additions and 36 deletions.
36 changes: 0 additions & 36 deletions .github/workflows/format-check.yml
Original file line number Diff line number Diff line change
@@ -1,37 +1 @@
name: Format Check
on: push
jobs:
check-formatting:
name: Code Formatting
runs-on: ubuntu-latest
steps:
- uses: JoshuaSBrown/cpp-py-formatter/[email protected]
with:
clangFormatVersion: 10
token: ${{ secrets.GITHUB_TOKEN }}

format-check:
runs-on: ubuntu-latest
if: ${{ always() }}
# needs: check-formatting
strategy:
matrix:
python-version: [ "3.9" ]
steps:
- uses: actions/checkout@v2
- name: Update ubuntu
run: sudo apt-get update
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
sudo apt-get install -y python3-sphinx sphinx-rtd-theme-common
pip install sphinx_rtd_theme recommonmark flake8 black pytest pytest-cov black[jupyter]
- name: Black formatting checks
run: black --line-length 88 --exclude '/jupyter_notebooks/' --check .
- name: Lint with flake8
run: |
flake8 --count --select=E9,F63,F7,F82 --show-source --statistics .
flake8 --count --statistics .

0 comments on commit be2e909

Please sign in to comment.