Skip to content

Commit

Permalink
Add python 3.12 and pylint 3.0 compatibility
Browse files Browse the repository at this point in the history
Co-authored-by: Irtaza Akram <[email protected]>
Co-authored-by: Stavros Ntentos <[email protected]>
  • Loading branch information
3 people committed Dec 4, 2023
1 parent 69ad82f commit 4070f90
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 8 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/run-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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",
Expand Down
3 changes: 2 additions & 1 deletion tests/base_tester.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
6 changes: 1 addition & 5 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 4070f90

Please sign in to comment.