[DEV] add ruff and remove isort and flake (#300)

* [DEV] add ruff and remove isort and flake
- precommit
- workflow
- Makefile

updated black

* configure black to use default line-length

* reformat to 88 chars line-length

* fix ugly comments
This commit is contained in:
dni ⚡
2023-08-24 09:47:47 +02:00
committed by GitHub
parent 0a5beb75a2
commit 88393fa4c4
26 changed files with 357 additions and 333 deletions

View File

@@ -24,9 +24,7 @@ jobs:
run: poetry install
- name: Check black
run: make black-check
- name: Check isort
run: make isort-check
linting:
mypy:
runs-on: ubuntu-latest
strategy:
matrix:
@@ -49,5 +47,8 @@ jobs:
run: yes | poetry run mypy cashu --install-types || true
- name: Run mypy
run: poetry run mypy cashu --ignore-missing
- name: Run flake8
run: poetry run flake8
ruff:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: chartboost/ruff-action@v1