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 2d5fbae commit cb37f04
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,10 @@ 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 coverage[toml]
- run: pip install .
- run: coverage run --source=yamllint -m unittest discover
# https://github.com/AndreMiras/coveralls-python-action/issues/18
- run: echo -e "[run]\nrelative_files = True" > .coveragerc
- name: Coveralls
uses: AndreMiras/coveralls-python-action@develop
2 changes: 1 addition & 1 deletion docs/quickstart.rst
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ If you prefer installing from source, you can run, from the source directory:

.. code:: bash
python setup.py sdist
poetry build
pip install --user dist/yamllint-*.tar.gz
Running yamllint
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 cb37f04

Please sign in to comment.