From 862ac7b78280d17fed5fa0da8c6118fae11bdc03 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jorge=20Garc=C3=ADa=20de=20Bustos?= Date: Fri, 2 Feb 2024 13:14:30 +0000 Subject: [PATCH] Make scripts --- make.ps1 | 6 ++++++ make.sh | 7 +++++++ 2 files changed, 13 insertions(+) create mode 100644 make.ps1 create mode 100644 make.sh diff --git a/make.ps1 b/make.ps1 new file mode 100644 index 0000000..d8c9465 --- /dev/null +++ b/make.ps1 @@ -0,0 +1,6 @@ +Write-Host "---------- Reformating with black... ----------" -ForegroundColor Blue +black .\ml_rest_fastapi .\tests +Write-Host "---------- Analysing with pylint... -----------" -ForegroundColor Blue +pylint --recursive=y .\ml_rest_fastapi .\tests +Write-Host "---------- Validating with mypy... ------------" -ForegroundColor Blue +mypy --pretty --config-file=mypy.ini .\ml_rest_fastapi diff --git a/make.sh b/make.sh new file mode 100644 index 0000000..fefc06e --- /dev/null +++ b/make.sh @@ -0,0 +1,7 @@ +#!/bin/bash +echo -e "\033[1;34m---------- Reformating with black... ----------\033[0m" +black ./ml_rest_fastapi ./tests +echo -e "\033[1;34m---------- Analysing with pylint... -----------\033[0m" +pylint --recursive=y ./ml_rest_fastapi ./tests +echo -e "\033[1;34m---------- Validating with mypy... ------------\033[0m" +mypy --pretty --config-file=mypy.ini ./ml_rest_fastapi