sk- / git-lint

improving source code one step at a time
Apache License 2.0
237 stars 78 forks source link

git lint can't find yamllint #156

Open wintermonster opened 4 years ago

wintermonster commented 4 years ago

I get the following error when i try to run git lint

C:\Users\nzahuja\Anaconda3\lib\site-packages\gitlint\__init__.py:107: YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loader is unsafe. Please read https://msg.pyyaml.org/load for full details.
  yaml_config = yaml.load(content)
Linting file: ←[1m.gitlab-ci.yml←[0m←[1m←[33mSKIPPED←[0m: yamllint is not installed. Run pip install yamllint.

but when I run yamllint, it works

(base) D:\Nikhil\GitLab\visualisations>yamllint .gitlab-ci.yml
.gitlab-ci.yml
  1:79      warning  missing starting space in comment  (comments)
  1:79      error    wrong new line character: expected \n  (new-lines)
  3:79      warning  missing starting space in comment  (comments)
  5:1       warning  missing document start "---"  (document-start)
  12:15     warning  too few spaces before comment  (comments)
  14:79     warning  missing starting space in comment  (comments)
  16:79     warning  missing starting space in comment  (comments)
  22:81     error    line too long (107 > 80 characters)  (line-length)
  23:81     error    line too long (106 > 80 characters)  (line-length)
  24:81     error    line too long (105 > 80 characters)  (line-length)