Fix flake8 lint issues and update tox config to exclude virtualenv and build dirs

Signed-off-by: Bilgin Ibryam <bibryam@gmail.com>
This commit is contained in:
Bilgin Ibryam 2025-05-23 22:23:11 +01:00
parent eea639bfb8
commit 5a0208ceb1
3 changed files with 4 additions and 4 deletions

View File

@ -36,7 +36,7 @@ async def main():
# Create a dapr agent with both tools - CrewAI wrapped tool and native tool
agent = Agent(
"""You are a helpful assistant that can read files and analyze text.
The ReadFile tool is already configured to read from a specific sample file,
The ReadFile tool is already configured to read from a specific sample file,
so you can just use it without arguments.
After getting the content, you can use the CountWords tool to analyze the text statistics.""",
tools=[file_tool, count_words],

View File

@ -6,9 +6,8 @@ from dotenv import load_dotenv
from langchain_community.tools import DuckDuckGoSearchRun
from dapr_agents.agent import Agent
from dapr_agents.tool import LangchainTool, tool
from dapr_agents.tool.third_party import LangchainTool
from dapr_agents.tool import tool
from dapr_agents.tool.third_party import LangchainTool
from pydantic import BaseModel, Field
load_dotenv()

View File

@ -12,7 +12,8 @@ basepython = python3
usedevelop = False
deps = flake8
commands =
flake8 . --ignore=E501,F401,W503,E203
flake8 . --ignore=E501,F401,W503,E203 --exclude=.git,__pycache__,.venv,build,dist,.tox
[testenv:ruff]
basepython = python3