with failing linting

This commit is contained in:
ishaan-jaff 2023-08-18 12:10:54 -07:00
parent 1bb2aefea1
commit 1310e3b32f
2 changed files with 16 additions and 6 deletions

View file

@ -25,8 +25,19 @@ jobs:
python -m pip install -r .circleci/requirements.txt python -m pip install -r .circleci/requirements.txt
pip install infisical pip install infisical
pip install pytest pip install pytest
pip install mypy
pip install openai[datalib] pip install openai[datalib]
pip install -Uq chromadb==0.3.29 pip install -Uq chromadb==0.3.29
- run:
name: Linting Testing
command: |
cd litellm
if ! python -m mypy . --ignore-missing-imports; then
echo "mypy detected errors"
exit 1
fi
cd ..
# Run pytest and generate JUnit XML report # Run pytest and generate JUnit XML report
@ -83,11 +94,10 @@ workflows:
version: 2 version: 2
build_and_test: build_and_test:
jobs: jobs:
- local_testing - linting
- local_testing:
requires:
- linting
- publish_to_pypi: - publish_to_pypi:
requires: requires:
- local_testing - local_testing
filters:
branches:
only:
- main

View file

@ -50,4 +50,4 @@ try:
except: except:
print(f"error occurred: {traceback.format_exc()}") print(f"error occurred: {traceback.format_exc()}")
pass pass
os.environ["OPENAI_API_KEY"] = str(temp_key) os.environ["OPENAI_API_KEY"] = temp_key