Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: update lints Ruff & docformatter #3130

Merged
merged 16 commits into from
May 7, 2024
Next Next commit
ci: update lints
  • Loading branch information
Borda committed Feb 20, 2024
commit aed99ad347580d1949760d8dcc126231422c7f87
23 changes: 9 additions & 14 deletions .github/workflows/flake8.yml
Original file line number Diff line number Diff line change
@@ -1,24 +1,19 @@
name: Flake8 & Docformat
name: Ruff & Docformat

on: [push, pull_request]

jobs:
flake8:
lint:
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: |
pip install ruff
pip install docformatter[tomli]==1.5.0
- uses: actions/setup-python@v4
- name: Install tools
run: pip install "ruff==0.2.2" "docformatter[tomli]==1.5.0"
- name: Ruff (Flake8)
run: |
ruff src
working-directory: src/
run: ruff gluonts
- name: DocFormatter
run: |
docformatter -r src/gluonts
working-directory: src/
run: docformatter -r gluonts
Loading