Skip to content

Commit

Permalink
Merge pull request #185 from carsongee/rc/0.20.0
Browse files Browse the repository at this point in the history
Release 0.20.0
  • Loading branch information
carsongee authored Oct 6, 2023
2 parents 0c83291 + 9533ed7 commit db22192
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 15 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ jobs:
fail-fast: false
matrix:
python-version:
- "3.7"
- "3.8"
- "3.9"
- "3.10"
- "3.11.0-rc - 3.11"
- "3.11"
- "3.12.0-rc - 3.12"

steps:
- uses: actions/checkout@v3
Expand Down
6 changes: 6 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,12 @@ If you want to help development, there is
Releases
========

0.20.0
~~~~~~
- Corrected issues introduced by deprecations in pylint
- Added support for Python 3.12 and dropped support for Python 3.7
- Last version that will support pytest < 7 and pylint < 2.6

0.19.0
~~~~~~

Expand Down
2 changes: 2 additions & 0 deletions pytest_pylint/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ def pytest_configure(self, config):
try:
pylintrc_file = next(pylint_config.find_default_config_files(), None)
except AttributeError:
# pylint: disable=no-member
pylintrc_file = pylint_config.PYLINTRC

if pylintrc_file and not exists(pylintrc_file):
Expand Down Expand Up @@ -391,4 +392,5 @@ def repr_failure(self, excinfo, style=None):

def reportinfo(self):
"""Generate our test report"""
# pylint: disable=no-member
return self.fspath, None, f"[pylint] {self.parent.rel_path}"
2 changes: 0 additions & 2 deletions pytest_pylint/pylint_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,12 @@
"""Pylint reporter classes."""
import sys

from pylint.interfaces import IReporter
from pylint.reporters import BaseReporter


class ProgrammaticReporter(BaseReporter):
"""Reporter that replaces output with storage in list of dictionaries"""

__implements__ = IReporter
extension = "prog"

def __init__(self, output=None):
Expand Down
8 changes: 4 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
Plugin for py.test for doing pylint tests
"""

# pylint: disable=import-error
from setuptools import setup

with open("README.rst", encoding="utf-8") as f:
Expand All @@ -16,24 +16,24 @@
description="pytest plugin to check source code with pylint",
long_description=LONG_DESCRIPTION,
license="MIT",
version="0.19.0",
version="0.20.0",
author="Carson Gee",
author_email="[email protected]",
url="https://github.com/carsongee/pytest-pylint",
packages=["pytest_pylint"],
entry_points={"pytest11": ["pylint = pytest_pylint.plugin"]},
python_requires=">=3.7",
install_requires=["pytest>=5.4", "pylint>=2.3.0", "toml>=0.7.1"],
install_requires=["pytest>=5.4,<8.0", "pylint>=2.3.0", "toml>=0.7.1"],
setup_requires=["pytest-runner"],
tests_require=["coverage", "flake8", "black", "isort"],
classifiers=[
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
],
)
15 changes: 8 additions & 7 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,29 +1,30 @@
[tox]
envlist =
py3{7, 8, 9}-pylint{23}-pytest{54}
py3{7, 8, 9, 10}-pylint{213, 214}-pytest{71}
py3{7, 8, 9, 10, 11}-pylint{215, latest, main}-pytest{71, latest, main}
py3{8, 9}-pylint{26, 30}-pytest{54}
py3{8, 9, 10}-pylint{213, 214, 30}-pytest{71}
py3{8, 9, 10, 11}-pylint{215, latest, main}-pytest{71, latest}
py3{12}-pylint{latest, main}-pytest{71, latest}
coverage
qa
skip_missing_interpreters = true

[testenv]
usedevelop = true
deps =
pylint23: pylint~=2.3.1
pylint30: pylint~=3.0
pylint26: pylint~=2.6.0
pylint213: pylint~=2.13.9
pylint214: pylint~=2.14.5
pylint215: pylint~=2.15.0
pylintlatest: pylint
pylintmain: git+https://github.com/PyCQA/pylint.git@main#egg=pylint
pylintmain: git+https://github.com/PyCQA/astroid.git@main#egg=astroid
pytest54: pytest~=5.4.3
pytest71: pytest~=7.1.2
pytest7: pytest~=7.1.2
pytestlatest: pytest
pytestmain: git+https://github.com/pytest-dev/pytest.git@main#egg=pytest
coverage
commands =
coverage run -m py.test {posargs}
coverage run -m pytest {posargs}

[testenv:coverage]
depends = py3{7, 8, 9, 10, 11}-pylint{215, latest, main}-pytest{71, latest, main}
Expand Down

0 comments on commit db22192

Please sign in to comment.