Skip to content

Commit

Permalink
[coverage] Invoke pytest as python -m pytest to restore coverage (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobtylerwalls authored Jul 30, 2023
1 parent f8b7403 commit 2821efb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ jobs:
run: |
. venv/bin/activate
pip list | grep 'astroid\|pylint'
pytest --durations=10 --benchmark-disable --cov --cov-report= tests/
python -m pytest --durations=10 --benchmark-disable --cov --cov-report= tests/
- name: Run functional tests with minimal messages config
run: |
. venv/bin/activate
Expand Down
10 changes: 7 additions & 3 deletions doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@
import sys
from datetime import datetime

from pylint import __version__
from pylint.__pkginfo__ import numversion

# Pylint documentation build configuration file, created by
# sphinx-quickstart on Thu Apr 4 20:31:25 2013.
#
Expand All @@ -27,6 +24,13 @@
# add these directories to sys.path here. If the directory is relative to the
# documentation root, use 'os.path.abspath' to make it absolute, like shown here.
sys.path.append(os.path.abspath("exts"))
sys.path.append(os.path.abspath(".."))

# pylint: disable=wrong-import-position
from pylint import __version__ # noqa: E402
from pylint.__pkginfo__ import numversion # noqa: E402

# pylint: enable=wrong-import-position

# -- General configuration -----------------------------------------------------

Expand Down

0 comments on commit 2821efb

Please sign in to comment.