Code style checks #295
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: Code style checks | |
on: | |
push: | |
branches: | |
- "master" | |
create: | |
tags: | |
- "*" | |
pull_request: | |
branches: | |
- "*" | |
jobs: | |
black: | |
name: Check black compliance. | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Setup Python | |
uses: actions/setup-python@v4 | |
- name: Black | |
uses: psf/black@stable | |
with: | |
options: "--config pyproject.toml --check" | |
src: "." | |
docstring: | |
name: Check docstring compliance. | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Setup Python | |
uses: actions/setup-python@v4 | |
- name: Install interrogate | |
run: python -m pip install interrogate | |
- name: Run interrogate | |
run: interrogate . | |