Skip to content

Commit

Permalink
Merge pull request #7 from thomasmeeus/fix_deprications
Browse files Browse the repository at this point in the history
Fix deprications & remove python3 dependency
  • Loading branch information
thomasmeeus authored Jun 24, 2018
2 parents 881ee51 + b36e929 commit d12ebc1
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ SublimeLinter 3 must be installed in order to use this plugin. If SublimeLinter
### Linter installation
Before using this plugin, you must ensure that `yamllint` is installed on your system. To install `yamllint`, do the following:

1. Install [Python3](https://www.python.org/downloads/) and pip. Python3 is required by `yamllint`
1. Install [Python](https://www.python.org/downloads/) and pip. Python is required by `yamllint`

1. Install `yamllint` by typing the following in a terminal:
```
[sudo] pip3 install yamllint
[sudo] pip install yamllint
```


Expand Down
6 changes: 4 additions & 2 deletions linter.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,10 @@
class Yamllint(PythonLinter):
"""Provides an interface to yamllint."""

syntax = ('yml', 'yaml')
cmd = ('yamllint@python3', '-f', 'parsable', '*')
defaults = {
'selector': 'source.yaml'
}
cmd = ('yamllint', '-f', 'parsable', '*')
executable = None
version_args = '--version'
version_re = r'(?P<version>\d+\.\d+\.\d+)'
Expand Down
2 changes: 1 addition & 1 deletion messages/install.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ follow the installation instructions here:

https://github.com/thomasmeeus/SublimeLinter-contrib-yamllint

Also make sure to install `yamllint` with `Python3`
Also make sure to install `yamllint` with `Python`

0 comments on commit d12ebc1

Please sign in to comment.