From 42a3382b6e78fe7aa6a9044cabe38436d7c4bbcc Mon Sep 17 00:00:00 2001 From: Matthias Date: Fri, 15 Mar 2024 16:52:01 +0100 Subject: [PATCH] fix make lint, add adev --- Makefile | 5 ++++- test-requirements.txt | 3 ++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index c635ae5..7a54227 100644 --- a/Makefile +++ b/Makefile @@ -7,7 +7,7 @@ test-all-env: tox -- graphsense lint: - flake8 gsrest + flake8 ./gsrest --count --max-line-length=80 --statistics --exclude plugins format: autopep8 --in-place --recursive gsrest @@ -16,6 +16,9 @@ format: serve: python -m aiohttp.web -H localhost -P 9000 openapi_server:main +dev: + adev runserver -p 9000 --root . --app-factory main openapi_server/__init__.py + build-docker: docker build -t graphsense-rest . diff --git a/test-requirements.txt b/test-requirements.txt index ddf446e..cca2aa2 100644 --- a/test-requirements.txt +++ b/test-requirements.txt @@ -2,4 +2,5 @@ pytest>=6.2.5 pytest-cov>=3.0.0 pytest-randomly>=3.11 pytest-aiohttp>=1.0.3 -pytest-icdiff >= 0.6 \ No newline at end of file +pytest-icdiff >= 0.6 +aiohttp-devtools==1.1.2