Adding comments in the codebase #83
Workflow file for this run
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: Python Static Analysis | |
on: | |
pull_request: | |
push: | |
branches: [main] | |
workflow_dispatch: | |
jobs: | |
job: | |
runs-on: ubuntu-latest | |
steps: | |
# https://github.com/actions/setup-python | |
- name: Install Python 3.10 | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.10' | |
- name: Install Python dependencies | |
run: | | |
pip install --upgrade pip | |
pip install black 'black[jupyter]' flake8 isort | |
# https://github.com/actions/checkout | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Run isort | |
run: isort --check . | |
- name: Run black | |
run: black --check . | |
- name: Run flake8 | |
run: flake8 |