Update project.rst #1745
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 . |