forked from PyCQA/pylint-pytest
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into migrate-to-setup.cfg
# By Stavros Ntentos (14) and others # Via GitHub (10) and Stavros Ntentos (1) * master: Update/Prepare Changelog for v1.1.7 use pylint v3 in the repo remove support of pylint v1 Support pylint v3 Release v1.1.6 Minor `.github/ISSUE_TEMPLATE/bug_report.md` improvement Release v1.1.5 Improve copy-paste docstring from 8756cc4 Fix tests running via PyCharm Move `--cov-report=html` to `addopts` Windows Artifacts have incorrect Slugification Release v1.1.4 Extend coverage for `if node.name in FixtureChecker._pytest_fixtures[fixname][0].argnames:` Make `nsp/nate/better-unused-argument` merge-able with `origin/master` Improve `F6401`:`cannot-enumerate-pytest-fixtures`: 🐛 Ignore collection failures in non-tests removes more false positives for unused-argument Signed-off-by: Stavros Ntentos <[email protected]> # Conflicts: # .github/workflows/run-tests.yaml # CHANGELOG.md # setup.py # tests/base_tester.py # tox.ini Additionally, some minor format modifications at `CHANGELOG.md`
- Loading branch information
Showing
14 changed files
with
255 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,16 @@ | ||
from pylint.checkers import BaseChecker | ||
|
||
from pylint_pytest.utils import PYLINT_VERSION_MAJOR | ||
|
||
|
||
class BasePytestChecker(BaseChecker): | ||
if PYLINT_VERSION_MAJOR < 3: | ||
# todo(maybe-remove): if we only support pylint>=3 | ||
# Since https://github.com/pylint-dev/pylint/pull/8404, pylint does not need this | ||
# __implements__ pattern. keeping it for retro compatibility with pylint==2.x | ||
# pylint: disable=import-outside-toplevel,no-name-in-module | ||
from pylint.interfaces import IAstroidChecker | ||
|
||
__implements__ = IAstroidChecker | ||
|
||
name = "pylint-pytest" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.