Skip to content

Commit 37f5268

Browse files
Merge commit '904e2e9' into add-python-3.12
2 parents 9318e05 + 904e2e9 commit 37f5268

File tree

8 files changed

+19
-14
lines changed

8 files changed

+19
-14
lines changed

.github/workflows/checks.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ on:
1212
env:
1313
CACHE_VERSION: 1
1414
KEY_PREFIX: base-venv
15-
DEFAULT_PYTHON: '3.11'
15+
DEFAULT_PYTHON: '3.12'
1616
PRE_COMMIT_CACHE: ~/.cache/pre-commit
1717

1818
concurrency:

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
- published
88

99
env:
10-
DEFAULT_PYTHON: '3.11'
10+
DEFAULT_PYTHON: '3.12'
1111

1212
permissions:
1313
contents: read

.github/workflows/run-tests.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,10 @@ jobs:
5252
env:
5353
FORCE_COLOR: 1
5454
PYTEST_CI_ARGS: --cov-report=xml --cov-report=html --junitxml=test_artifacts/test_report.xml --color=yes
55-
run: tox --skip-missing-interpreters=true
55+
run: |
56+
TOX_ENV=$(echo "py${{ matrix.python-version }}" | tr -d .)
57+
tox -e $TOX_ENV
58+
shell: bash
5659

5760
- name: Upload coverage reports to Codecov
5861
uses: codecov/codecov-action@v3

CHANGELOG.md

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

33
## [Unreleased]
44

5+
### Added
6+
7+
- Support for Python 3.12 (#22)
8+
- Support for Pylint 3 (#22)
9+
10+
### Removed
11+
12+
- Support for Python 3.6 & 3.7 (#22)
13+
514
## [1.1.3] - 2023-10-23
615

716
This is the first release after maintenance was assumed by https://github.com/stdedos.

pylint_pytest/checkers/class_attr_loader.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,12 @@
11
from typing import Optional, Set
22

33
from astroid import Assign, Attribute, ClassDef, Name
4-
from pylint.interfaces import IAstroidChecker
54

65
from ..utils import _can_use_fixture, _is_class_autouse_fixture
76
from . import BasePytestChecker
87

98

109
class ClassAttrLoader(BasePytestChecker):
11-
__implements__ = IAstroidChecker
1210
msgs = {"E6400": ("", "pytest-class-attr-loader", "")}
1311

1412
in_setup = False

pylint_pytest/checkers/fixture.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
import pylint
99
import pytest
1010
from pylint.checkers.variables import VariablesChecker
11-
from pylint.interfaces import IAstroidChecker
1211

1312
from ..utils import (
1413
_can_use_fixture,
@@ -42,7 +41,6 @@ def pytest_collectreport(self, report):
4241

4342

4443
class FixtureChecker(BasePytestChecker):
45-
__implements__ = IAstroidChecker
4644
msgs = {
4745
"W6401": (
4846
"Using a deprecated @pytest.yield_fixture decorator",

pyproject.toml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ paths.source = [
3838
]
3939

4040
[tool.mypy]
41-
python_version = "3.7"
41+
python_version = "3.8"
4242
check_untyped_defs = true
4343
explicit_package_bases = true
4444
namespace_packages = true
@@ -91,8 +91,7 @@ ignore = [
9191
"RUF012", # Mutable class attributes should be annotated with `typing.ClassVar`
9292
]
9393

94-
# py36, but ruff does not support it :/
95-
target-version = "py37"
94+
target-version = "py38"
9695

9796
[tool.ruff.pydocstyle]
9897
convention = "google"
@@ -115,7 +114,7 @@ convention = "google"
115114

116115
[tool.pylint]
117116

118-
py-version = "3.6"
117+
py-version = "3.8"
119118

120119
ignore-paths="tests/input" # Ignore test inputs
121120

@@ -125,13 +124,11 @@ load-plugins= [
125124
"pylint.extensions.broad_try_clause",
126125
"pylint.extensions.check_elif",
127126
"pylint.extensions.code_style",
128-
"pylint.extensions.comparetozero",
129127
"pylint.extensions.comparison_placement",
130128
"pylint.extensions.confusing_elif",
131129
# "pylint.extensions.consider_ternary_expression", # Not a pretty refactoring
132130
"pylint.extensions.docparams",
133131
"pylint.extensions.docstyle",
134-
"pylint.extensions.emptystring",
135132
"pylint.extensions.eq_without_hash",
136133
"pylint.extensions.for_any_all",
137134
"pylint.extensions.mccabe",

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[tox]
2-
envlist = py38,py39,py310,py311,py312
2+
envlist = py{38,39,310,311,312}
33
skipsdist = True
44
passenv =
55
FORCE_COLOR

0 commit comments

Comments
 (0)