Drew Short
5 years ago
10 changed files with 98 additions and 46 deletions
-
33server/corvus/api/authentication_api.py
-
7server/corvus/api/health_api.py
-
15server/corvus/api/user_api.py
-
2server/corvus/errors.py
-
9server/corvus/middleware/authentication_middleware.py
-
2server/corvus/service/role_service.py
-
15server/corvus/service/user_token_service.py
-
1server/mypy.ini
-
30server/run_tests.bat
-
30server/run_tests.sh
@ -0,0 +1,30 @@ |
|||
SET PIPENV_VERBOSITY=-1 |
|||
SET PYTHONPATH=%cd% |
|||
|
|||
pipenv run python3 --version |
|||
pipenv run python3 -m pip --version |
|||
|
|||
pipenv run pylint --version |
|||
pipenv run mypy --version |
|||
pipenv run coverage --version |
|||
pipenv run pytest --version |
|||
pipenv run pycodestyle --version |
|||
pipenv run pydocstyle --version |
|||
|
|||
pipenv run pylint corvus |
|||
if %errorlevel% neq 0 exit /b %errorlevel% |
|||
|
|||
pipenv run mypy corvus tests |
|||
if %errorlevel% neq 0 exit /b %errorlevel% |
|||
|
|||
pipenv run coverage run --source corvus -m pytest |
|||
if %errorlevel% neq 0 exit /b %errorlevel% |
|||
|
|||
pipenv run coverage report --fail-under=85 -m --skip-covered |
|||
if %errorlevel% neq 0 exit /b %errorlevel% |
|||
|
|||
pipenv run pycodestyle corvus tests |
|||
if %errorlevel% neq 0 exit /b %errorlevel% |
|||
|
|||
pipenv run pydocstyle corvus |
|||
if %errorlevel% neq 0 exit /b %errorlevel% |
Write
Preview
Loading…
Cancel
Save
Reference in new issue