Skip to content
This repository was archived by the owner on Jan 9, 2024. It is now read-only.

Conversation

@sirk0
Copy link
Contributor

@sirk0 sirk0 commented Mar 28, 2022

Built-in tydy tool has been removed from robotframework 5.0 and there is a separate tool robotidy available, which supports pre-commit hooks natively. For this reason, set an upper bound for robotframework in dependencies
Error:

Traceback (most recent call last): 
File "/home/runner/.cache/pre-commit/repoq2ln0w49/py_env-python3.10/bin/python-robotframework-tidy", line 5, in <module> 
from pre_commit_robotframework_tidy.rf_tidy import main 
File "/home/runner/.cache/pre-commit/repoq2ln0w49/py_env-python3.10/lib/python3.10/site-packages/pre_commit_robotframework_tidy/rf_tidy.py", line 6, in <module> 
from robot.tidy import Tidy 
ModuleNotFoundError: No module named 'robot.tidy' 

@sirk0 sirk0 changed the title Fix the Hook Fix the hook for robot framework 5.0 Mar 28, 2022
@sirk0
Copy link
Contributor Author

sirk0 commented Mar 28, 2022

@guykisel, please take a look

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant