-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix all pre-commit errors #743
Open
arnaudgelas
wants to merge
1
commit into
joaomdmoura:main
Choose a base branch
from
arnaudgelas:pre_commit_fix
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This was referenced Jun 8, 2024
When running pre-commit run --all-files src/crewai/__init__.py:1:26: F401 `crewai.agent.Agent` imported but unused; consider removing, adding to `__all__`, or using a redundant alias src/crewai/__init__.py:2:25: F401 `crewai.crew.Crew` imported but unused; consider removing, adding to `__all__`, or using a redundant alias src/crewai/__init__.py:3:28: F401 `crewai.process.Process` imported but unused; consider removing, adding to `__all__`, or using a redundant alias src/crewai/__init__.py:4:25: F401 `crewai.task.Task` imported but unused; consider removing, adding to `__all__`, or using a redundant alias src/crewai/agents/__init__.py:1:34: F401 `.cache.cache_handler.CacheHandler` imported but unused; consider removing, adding to `__all__`, or using a redundant alias src/crewai/agents/__init__.py:2:23: F401 `.executor.CrewAgentExecutor` imported but unused; consider removing, adding to `__all__`, or using a redundant alias src/crewai/agents/__init__.py:3:21: F401 `.parser.CrewAgentParser` imported but unused; consider removing, adding to `__all__`, or using a redundant alias src/crewai/agents/__init__.py:4:28: F401 `.tools_handler.ToolsHandler` imported but unused; consider removing, adding to `__all__`, or using a redundant alias src/crewai/agents/cache/__init__.py:1:28: F401 `.cache_handler.CacheHandler` imported but unused; consider removing, adding to `__all__`, or using a redundant alias src/crewai/memory/__init__.py:1:35: F401 `.entity.entity_memory.EntityMemory` imported but unused; consider removing, adding to `__all__`, or using a redundant alias src/crewai/memory/__init__.py:2:41: F401 `.long_term.long_term_memory.LongTermMemory` imported but unused; consider removing, adding to `__all__`, or using a redundant alias src/crewai/memory/__init__.py:3:43: F401 `.short_term.short_term_memory.ShortTermMemory` imported but unused; consider removing, adding to `__all__`, or using a redundant alias src/crewai/project/__init__.py:1:26: F401 `.annotations.agent` imported but unused; consider removing, adding to `__all__`, or using a redundant alias src/crewai/project/__init__.py:1:33: F401 `.annotations.crew` imported but unused; consider removing, adding to `__all__`, or using a redundant alias src/crewai/project/__init__.py:1:39: F401 `.annotations.task` imported but unused; consider removing, adding to `__all__`, or using a redundant alias src/crewai/project/__init__.py:2:24: F401 `.crew_base.CrewBase` imported but unused; consider removing, adding to `__all__`, or using a redundant alias src/crewai/telemetry/__init__.py:1:24: F401 `.telemetry.Telemetry` imported but unused; consider removing, adding to `__all__`, or using a redundant alias src/crewai/utilities/__init__.py:1:24: F401 `.converter.Converter` imported but unused; consider removing, adding to `__all__`, or using a redundant alias src/crewai/utilities/__init__.py:1:35: F401 `.converter.ConverterError` imported but unused; consider removing, adding to `__all__`, or using a redundant alias src/crewai/utilities/__init__.py:2:19: F401 `.i18n.I18N` imported but unused; consider removing, adding to `__all__`, or using a redundant alias src/crewai/utilities/__init__.py:3:25: F401 `.instructor.Instructor` imported but unused; consider removing, adding to `__all__`, or using a redundant alias src/crewai/utilities/__init__.py:4:21: F401 `.logger.Logger` imported but unused; consider removing, adding to `__all__`, or using a redundant alias src/crewai/utilities/__init__.py:5:22: F401 `.printer.Printer` imported but unused; consider removing, adding to `__all__`, or using a redundant alias src/crewai/utilities/__init__.py:6:22: F401 `.prompts.Prompts` imported but unused; consider removing, adding to `__all__`, or using a redundant alias src/crewai/utilities/__init__.py:7:29: F401 `.rpm_controller.RPMController` imported but unused; consider removing, adding to `__all__`, or using a redundant alias src/crewai/utilities/__init__.py:8:26: F401 `.fileHandler.FileHandler` imported but unused; consider removing, adding to `__all__`, or using a redundant alias src/crewai/utilities/__init__.py:9:21: F401 `.parser.YamlParser` imported but unused; consider removing, adding to `__all__`, or using a redundant alias src/crewai/utilities/logger.py:16:25: F821 Undefined name `datetime`
c908dff
to
29f3bbb
Compare
@gvieira @joaomdmoura Any chance to merge this one? |
gvieira
approved these changes
Jun 12, 2024
@gvieira @joaomdmoura Could you review/merge this one, please? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
When running pre-commit run --all-files
src/crewai/init.py:1:26: F401
crewai.agent.Agent
imported but unused; consider removing, adding to__all__
, or using a redundant aliassrc/crewai/init.py:2:25: F401
crewai.crew.Crew
imported but unused; consider removing, adding to__all__
, or using a redundant aliassrc/crewai/init.py:3:28: F401
crewai.process.Process
imported but unused; consider removing, adding to__all__
, or using a redundant aliassrc/crewai/init.py:4:25: F401
crewai.task.Task
imported but unused; consider removing, adding to__all__
, or using a redundant aliassrc/crewai/agents/init.py:1:34: F401
.cache.cache_handler.CacheHandler
imported but unused; consider removing, adding to__all__
, or using a redundant aliassrc/crewai/agents/init.py:2:23: F401
.executor.CrewAgentExecutor
imported but unused; consider removing, adding to__all__
, or using a redundant aliassrc/crewai/agents/init.py:3:21: F401
.parser.CrewAgentParser
imported but unused; consider removing, adding to__all__
, or using a redundant aliassrc/crewai/agents/init.py:4:28: F401
.tools_handler.ToolsHandler
imported but unused; consider removing, adding to__all__
, or using a redundant aliassrc/crewai/agents/cache/init.py:1:28: F401
.cache_handler.CacheHandler
imported but unused; consider removing, adding to__all__
, or using a redundant aliassrc/crewai/memory/init.py:1:35: F401
.entity.entity_memory.EntityMemory
imported but unused; consider removing, adding to__all__
, or using a redundant aliassrc/crewai/memory/init.py:2:41: F401
.long_term.long_term_memory.LongTermMemory
imported but unused; consider removing, adding to__all__
, or using a redundant aliassrc/crewai/memory/init.py:3:43: F401
.short_term.short_term_memory.ShortTermMemory
imported but unused; consider removing, adding to__all__
, or using a redundant aliassrc/crewai/project/init.py:1:26: F401
.annotations.agent
imported but unused; consider removing, adding to__all__
, or using a redundant aliassrc/crewai/project/init.py:1:33: F401
.annotations.crew
imported but unused; consider removing, adding to__all__
, or using a redundant aliassrc/crewai/project/init.py:1:39: F401
.annotations.task
imported but unused; consider removing, adding to__all__
, or using a redundant aliassrc/crewai/project/init.py:2:24: F401
.crew_base.CrewBase
imported but unused; consider removing, adding to__all__
, or using a redundant aliassrc/crewai/telemetry/init.py:1:24: F401
.telemetry.Telemetry
imported but unused; consider removing, adding to__all__
, or using a redundant aliassrc/crewai/utilities/init.py:1:24: F401
.converter.Converter
imported but unused; consider removing, adding to__all__
, or using a redundant aliassrc/crewai/utilities/init.py:1:35: F401
.converter.ConverterError
imported but unused; consider removing, adding to__all__
, or using a redundant aliassrc/crewai/utilities/init.py:2:19: F401
.i18n.I18N
imported but unused; consider removing, adding to__all__
, or using a redundant aliassrc/crewai/utilities/init.py:3:25: F401
.instructor.Instructor
imported but unused; consider removing, adding to__all__
, or using a redundant aliassrc/crewai/utilities/init.py:4:21: F401
.logger.Logger
imported but unused; consider removing, adding to__all__
, or using a redundant aliassrc/crewai/utilities/init.py:5:22: F401
.printer.Printer
imported but unused; consider removing, adding to__all__
, or using a redundant aliassrc/crewai/utilities/init.py:6:22: F401
.prompts.Prompts
imported but unused; consider removing, adding to__all__
, or using a redundant aliassrc/crewai/utilities/init.py:7:29: F401
.rpm_controller.RPMController
imported but unused; consider removing, adding to__all__
, or using a redundant aliassrc/crewai/utilities/init.py:8:26: F401
.fileHandler.FileHandler
imported but unused; consider removing, adding to__all__
, or using a redundant aliassrc/crewai/utilities/init.py:9:21: F401
.parser.YamlParser
imported but unused; consider removing, adding to__all__
, or using a redundant aliassrc/crewai/utilities/logger.py:16:25: F821 Undefined name
datetime