Closed m-iwanicki closed 7 months ago
Maybe you need to run the git command while inside the robot venv?
source venv/bin/activate
Maybe you need to run the git command while inside the robot venv?
source venv/bin/activate
I have the same error. Unfortunately did not notice when and on which branch it arose. I am shure I had venv
launched.
@mkopec I was in venv every time. I cloned repo couple times and went through "Initializing environment" step every time.
Also happens for me, running in the robot-venv
, trying to commit on this branch
Device
N/A
RTE version
N/A
Affected component(s) or functionality
pre-commit hooks
Brief summary
robotidy fails with exception when trying to commit
How reproducible
Every time
How to reproduce
Unknown, happened to me when trying to cherry-pick commits from non-rootfs-encryption-tpm into ami-encrypted-rootfs-tests. After I resolved conflict in first commit I couldn't continue cherry-pick because of this error. After that it happened every time, on every branch. Can't try to reproduce because after it happens first time then it happens even after deleting and recloning repo.
Expected behavior
robotidy should fail or pass normally, not raise exceptions.
Actual behavior
robotidy/python raised "TypeError: can only concatenate list (not "tuple") to list"
Link to screenshots or logs
Additional context
After error happens first time then nothing helps not even deleting whole repository Identical problem happened to @DaniilKl and @filipleple on different branches. argument_names value when error happens is
('order', 'create_comment_section')
Solutions you've tried
Working:
return new_args + argument_names
toreturn [*new_args, *argument_names]
in ~/.cache/pre-commit/.../robotidy/transformers/__init__.pyNot working: