$ yamllint main.yml
main.yml
2:1 warning missing document start "---" (document-start)
2:81 error line too long (96 > 80 characters) (line-length)
15:81 error line too long (85 > 80 characters) (line-length)
69:81 error line too long (81 > 80 characters) (line-length)
75:81 error line too long (82 > 80 characters) (line-length)
~~~
In version 1.29.0 we start seeing a new error: wrong indentation: expected at least 3 (indentation)
~~~
$ pip install yamllint==1.29.0
Collecting yamllint==1.29.0
Using cached yamllint-1.29.0-py3-none-any.whl (62 kB)
Requirement already satisfied: setuptools in /tmp/test/lib/python3.9/site-packages (from yamllint==1.29.0) (59.5.0)
Requirement already satisfied: pyyaml in /tmp/test/lib64/python3.9/site-packages (from yamllint==1.29.0) (6.0)
Requirement already satisfied: pathspec>=0.5.3 in /tmp/test/lib/python3.9/site-packages (from yamllint==1.29.0) (0.10.3)
Installing collected packages: yamllint
Attempting uninstall: yamllint
Found existing installation: yamllint 1.28.0
Uninstalling yamllint-1.28.0:
Successfully uninstalled yamllint-1.28.0
Successfully installed yamllint-1.29.0
.
$ yamllint main.yml
main.yml
2:1 warning missing document start "---" (document-start)
2:81 error line too long (96 > 80 characters) (line-length)
6:3 error wrong indentation: expected at least 3 (indentation) >>>>> new error
15:81 error line too long (85 > 80 characters) (line-length)
69:81 error line too long (81 > 80 characters) (line-length)
75:81 error line too long (82 > 80 characters) (line-length)
~~~
Root cause, Issue appears after new release of yamllint 1.29.0, released on 10th January: https:/ /pypi.org/ project/ yamllint/ 1.29.0/ #history
I was able to reproduce the issue locally:-
With 1.28.0 version -> we don't see this error-> wrong indentation: expected at least 3
~~~
$ pip list | grep -i yamllint
yamllint 1.28.0
$ pwd tripleo- quickstart/ roles/environme nt/setup/ tasks
/tmp/debug/
$ yamllint main.yml
main.yml
2:1 warning missing document start "---" (document-start)
2:81 error line too long (96 > 80 characters) (line-length)
15:81 error line too long (85 > 80 characters) (line-length)
69:81 error line too long (81 > 80 characters) (line-length)
75:81 error line too long (82 > 80 characters) (line-length)
~~~
In version 1.29.0 we start seeing a new error: wrong indentation: expected at least 3 (indentation) 1.29.0- py3-none- any.whl (62 kB) lib/python3. 9/site- packages (from yamllint==1.29.0) (59.5.0) lib64/python3. 9/site- packages (from yamllint==1.29.0) (6.0) lib/python3. 9/site- packages (from yamllint==1.29.0) (0.10.3)
~~~
$ pip install yamllint==1.29.0
Collecting yamllint==1.29.0
Using cached yamllint-
Requirement already satisfied: setuptools in /tmp/test/
Requirement already satisfied: pyyaml in /tmp/test/
Requirement already satisfied: pathspec>=0.5.3 in /tmp/test/
Installing collected packages: yamllint
Attempting uninstall: yamllint
Found existing installation: yamllint 1.28.0
Uninstalling yamllint-1.28.0:
Successfully uninstalled yamllint-1.28.0
Successfully installed yamllint-1.29.0
.
$ yamllint main.yml
main.yml
2:1 warning missing document start "---" (document-start)
2:81 error line too long (96 > 80 characters) (line-length)
6:3 error wrong indentation: expected at least 3 (indentation) >>>>> new error
15:81 error line too long (85 > 80 characters) (line-length)
69:81 error line too long (81 > 80 characters) (line-length)
75:81 error line too long (82 > 80 characters) (line-length)
~~~