fix pyright in Makefile, add pyright+pylint+flake8 to check target

Co-authored-by: dni  <office@dnilabs.com>
This commit is contained in:
Pavol Rusnak 2023-02-02 12:56:10 +00:00 committed by dni ⚡
parent b8a5cc60b8
commit 09eab69e12
No known key found for this signature in database
GPG Key ID: 886317704CC4E618

View File

@ -4,13 +4,13 @@ all: format check requirements.txt
format: prettier isort black
check: mypy checkprettier checkisort checkblack
check: mypy pyright checkprettier checkisort checkblack pylint flake8
prettier: $(shell find lnbits -name "*.js" -o -name ".html")
./node_modules/.bin/prettier --write lnbits/static/js/*.js lnbits/core/static/js/*.js lnbits/extensions/*/templates/*/*.html ./lnbits/core/templates/core/*.html lnbits/templates/*.html lnbits/extensions/*/static/js/*.js lnbits/extensions/*/static/components/*/*.js lnbits/extensions/*/static/components/*/*.html
pyright:
./node_modules/.bin/pyright
poetry run ./node_modules/.bin/pyright
black:
poetry run black .