Fix formatting after black update (#3116) #4877
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: Flake8 & Docformat | |
on: [push, pull_request] | |
jobs: | |
flake8: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python 3.8 | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.8' | |
- name: Install dependencies | |
run: | | |
python -m pip install -U pip | |
pip install ruff | |
pip install docformatter[tomli]==1.5.0 | |
- name: Ruff (Flake8) | |
run: | | |
ruff src | |
- name: DocFormatter | |
run: | | |
docformatter -r src/gluonts |