Skip to content
This repository has been archived by the owner on May 28, 2023. It is now read-only.

Static Code Checks #980

Static Code Checks

Static Code Checks #980

Workflow file for this run

name: Static Code Checks
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
schedule:
# * is a special character in YAML so you have to quote this string
# at 4 am
- cron: '0 4 * * *'
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
checks:
env:
src: "hpoflow"
other-src: "tests docs setup.py"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Install
run: |
python -m pip install -U pip
pip install --progress-bar off -U .[checking,optional]
- name: Check with pydocstyle
run: pydocstyle --count ${{ env.src }} ${{ env.other-src }}
- name: Check with black
run: black ${{ env.src }} ${{ env.other-src }} --check --diff
- name: Check with flake8
run: flake8 ${{ env.src }} ${{ env.other-src }}
- name: Check with isort
run: isort ${{ env.src }} ${{ env.other-src }} --check --diff
- name: Check with mdformat
run: mdformat --check *.md
- name: Check with mypy
run: mypy --install-types --non-interactive ${{ env.src }} ${{ env.other-src }}
- name: Check with pylint
run: pylint ${{ env.src }}