diff --git a/.github/workflows/run-tests.yaml b/.github/workflows/run-tests.yaml index ed2ea22..b711a6f 100644 --- a/.github/workflows/run-tests.yaml +++ b/.github/workflows/run-tests.yaml @@ -24,7 +24,8 @@ jobs: - '3.9' - '3.10' - '3.11' -# - '3.12' # FixMe: https://github.com/pylint-dev/pylint-pytest/issues/3 + - '3.12' # FixMe: https://github.com/pylint-dev/pylint-pytest/issues/3 + defaults: run: diff --git a/CHANGELOG.md b/CHANGELOG.md index 642b33e..faa96b2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,11 @@ ## [Unreleased] +### Added + +- Support for Python 3.12 (#24) +- Support for Pylint 3 (#24) + ### Removed * Support for Python 3.6 & 3.7 (https://github.com/pylint-dev/pylint-pytest/pull/23) diff --git a/setup.py b/setup.py index 33e179f..2d116aa 100755 --- a/setup.py +++ b/setup.py @@ -28,7 +28,7 @@ long_description_content_type="text/markdown", packages=find_packages(exclude=["tests*", "sandbox"]), install_requires=[ - "pylint>=2", + "pylint>=2,pylint<4", "pytest>=4.6", ], python_requires=">=3.8", @@ -43,6 +43,7 @@ "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", "Programming Language :: Python :: Implementation :: CPython", "Operating System :: OS Independent", "License :: OSI Approved :: MIT License", diff --git a/tests/base_tester.py b/tests/base_tester.py index c57971e..da24661 100644 --- a/tests/base_tester.py +++ b/tests/base_tester.py @@ -70,7 +70,8 @@ def setup_method(self): self.linter = UnittestLinter() self.checker = self.CHECKER_CLASS(self.linter) self.impacted_checkers = [] - + for key, value in self.CONFIG.items(): + setattr(self.linter.config, key, value) self.checker.open() for checker_class in self.IMPACTED_CHECKER_CLASSES: diff --git a/tox.ini b/tox.ini index 547b809..b5baab3 100644 --- a/tox.ini +++ b/tox.ini @@ -1,9 +1,5 @@ [tox] -envlist = - py38-pylint{2,3} - py39-pylint{2,3} - py310-pylint{2,3} - py311-pylint{2,3} +envlist = py{36,37,38,39,310,311,312}-pylint{2,3} skipsdist = True passenv = FORCE_COLOR