diff --git a/azure-pipelines.yml b/azure-pipelines.yml index d5a61eac..fff61f9d 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -28,7 +28,7 @@ jobs: cd /myagent/_work/1/s/api/tacticalrmm pip install --no-cache-dir --upgrade pip pip install --no-cache-dir setuptools==50.3.2 wheel==0.36.1 - pip install --no-cache-dir -r requirements.txt -r requirements-test.txt + pip install --no-cache-dir -r requirements.txt -r requirements-test.txt -r requirements-dev.txt displayName: "Install Python Dependencies" - script: | @@ -41,6 +41,15 @@ jobs: fi displayName: "Run django tests" + - script: | + cd /myagent/_work/1/s/api + source env/bin/activate + black --check tacticalrmm + if [ $? -ne 0 ]; then + exit 1 + fi + displayName: "Codestyle black" + - script: | cd /myagent/_work/1/s/api source env/bin/activate