Skip to content

Commit

Permalink
Add yaml to coveralls and fix version on CLI
Browse files Browse the repository at this point in the history
  • Loading branch information
staticdev committed Apr 14, 2023
1 parent 6fef7b5 commit b654154
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ jobs:
python-version: ${{ matrix.python-version }}
- name: Append GitHub Actions system path
run: echo "$HOME/.local/bin" >> $GITHUB_PATH
- run: pip install coveralls
- run: pip install coveralls coverage[yaml]
- run: pip install .
- run: coverage run --source=yamllint -m unittest discover
- name: Coveralls
Expand Down
4 changes: 2 additions & 2 deletions yamllint/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
import platform
import sys

from yamllint import APP_DESCRIPTION, APP_NAME, APP_VERSION
from yamllint import APP_DESCRIPTION, APP_NAME, __version__
from yamllint import linter
from yamllint.config import YamlLintConfig, YamlLintConfigError
from yamllint.linter import PROBLEM_LEVELS
Expand Down Expand Up @@ -171,7 +171,7 @@ def run(argv=None):
action='store_true',
help='output only error level problems')
parser.add_argument('-v', '--version', action='version',
version='{} {}'.format(APP_NAME, APP_VERSION))
version='{} {}'.format(APP_NAME, __version__))

args = parser.parse_args(argv)

Expand Down

0 comments on commit b654154

Please sign in to comment.