Yamllint failed in test_generic

What happens

When I pre-commit the files they passed, but when I pushed my branch it generated an error in the yamllint hook.

What do you understand or find about that problem

I search the error in the test_generic log, and I find this:
image

You make any workaround? What did you do?

In my local repository I ran the yammlint hook on the .yml file and it did not generate any error.
So I don’t know why it’s failing.

Evidences

https://gitlab.com/autonomicjump/challenges/-/jobs/1420849389

I need help with

An explanation as for why this happens and how can I avoid this kind of problems.

Hi! Your problem is related with the character that your editor is using when you add a new line.
If your check your YAML file you can find that your editor is using CRLF

image

Click on that and change that value to LF

image

let me know if you have any other problems