Skip to content

Commit 4070f90

Browse files
Pierre-Sassoulasirtazaakramstdedos
committed
Add python 3.12 and pylint 3.0 compatibility
Co-authored-by: Irtaza Akram <[email protected]> Co-authored-by: Stavros Ntentos <[email protected]>
1 parent 69ad82f commit 4070f90

File tree

5 files changed

+12
-8
lines changed

5 files changed

+12
-8
lines changed

.github/workflows/run-tests.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ jobs:
2424
- '3.9'
2525
- '3.10'
2626
- '3.11'
27-
# - '3.12' # FixMe: https://github.com/pylint-dev/pylint-pytest/issues/3
27+
- '3.12' # FixMe: https://github.com/pylint-dev/pylint-pytest/issues/3
28+
2829

2930
defaults:
3031
run:

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22

33
## [Unreleased]
44

5+
### Added
6+
7+
- Support for Python 3.12 (#24)
8+
- Support for Pylint 3 (#24)
9+
510
### Removed
611

712
* Support for Python 3.6 & 3.7 (https://github.com/pylint-dev/pylint-pytest/pull/23)

setup.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
long_description_content_type="text/markdown",
2929
packages=find_packages(exclude=["tests*", "sandbox"]),
3030
install_requires=[
31-
"pylint>=2",
31+
"pylint>=2,pylint<4",
3232
"pytest>=4.6",
3333
],
3434
python_requires=">=3.8",
@@ -43,6 +43,7 @@
4343
"Programming Language :: Python :: 3.9",
4444
"Programming Language :: Python :: 3.10",
4545
"Programming Language :: Python :: 3.11",
46+
"Programming Language :: Python :: 3.12",
4647
"Programming Language :: Python :: Implementation :: CPython",
4748
"Operating System :: OS Independent",
4849
"License :: OSI Approved :: MIT License",

tests/base_tester.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,8 @@ def setup_method(self):
7070
self.linter = UnittestLinter()
7171
self.checker = self.CHECKER_CLASS(self.linter)
7272
self.impacted_checkers = []
73-
73+
for key, value in self.CONFIG.items():
74+
setattr(self.linter.config, key, value)
7475
self.checker.open()
7576

7677
for checker_class in self.IMPACTED_CHECKER_CLASSES:

tox.ini

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
[tox]
2-
envlist =
3-
py38-pylint{2,3}
4-
py39-pylint{2,3}
5-
py310-pylint{2,3}
6-
py311-pylint{2,3}
2+
envlist = py{36,37,38,39,310,311,312}-pylint{2,3}
73
skipsdist = True
84
passenv =
95
FORCE_COLOR

0 commit comments

Comments
 (0)