Harrison/fix lint (#80)

This commit is contained in:
Harrison Chase
2022-11-07 15:22:37 -08:00
committed by GitHub
parent 54e325be2f
commit 6cff2837bb
5 changed files with 9 additions and 10 deletions

View File

@@ -17,7 +17,7 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install -r test_requirements.txt
- name: Analysing the code with our lint
run: |
make lint

View File

@@ -92,7 +92,6 @@ class SelfAskWithSearchChain(Chain, BaseModel):
input_key: str = "question" #: :meta private:
output_key: str = "answer" #: :meta private:
class Config:
"""Configuration for this pydantic object."""

View File

@@ -74,8 +74,8 @@ class SerpAPIChain(Chain, BaseModel):
if serpapi_api_key is None or serpapi_api_key == "":
raise ValueError(
"Did not find SerpAPI API key, please add an environment variable"
" `SERPAPI_API_KEY` which contains it, or pass `serpapi_api_key` as a named"
" parameter to the constructor."
" `SERPAPI_API_KEY` which contains it, or pass `serpapi_api_key` "
"as a named parameter to the constructor."
)
try:
from serpapi import GoogleSearch

View File

@@ -1,10 +1,4 @@
-r test_requirements.txt
# For linting
black
isort
mypy
flake8
flake8-docstrings
# For integrations
cohere
openai

View File

@@ -2,3 +2,9 @@
# For testing
pytest
pytest-dotenv
# For linting
black
isort
mypy
flake8
flake8-docstrings