Skip to content

Commit 2e67e25

Browse files
committed
tox: update lint dependencies for python 3.12
Update all lint/format package versions to ensure that they are compatible with the latest python release. Add python 3.12 to the tested matrix. Ignore the new use-implicit-booleaness-not-comparison-to-string and use-implicit-booleaness-not-comparison-to-zero pylint rules. Signed-off-by: Robin Jarry <[email protected]>
1 parent 4537bc1 commit 2e67e25

File tree

3 files changed

+15
-9
lines changed

3 files changed

+15
-9
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ jobs:
3939
toxenv: py310
4040
- python: '3.11'
4141
toxenv: py311
42+
- python: '3.12'
43+
toxenv: py312
4244
- python: pypy3.9
4345
toxenv: pypy3
4446
steps:

pylintrc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,8 @@ disable=
7373
too-many-lines,
7474
unnecessary-pass,
7575
unused-argument,
76+
use-implicit-booleaness-not-comparison-to-string,
77+
use-implicit-booleaness-not-comparison-to-zero,
7678
wrong-import-order,
7779

7880
[REPORTS]

tox.ini

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# SPDX-License-Identifier: BSD-3-Clause
33

44
[tox]
5-
envlist = format,lint,py{36,37,38,39,310,311,py3},coverage
5+
envlist = format,lint,py{36,37,38,39,310,311,312,py3},coverage
66
skip_missing_interpreters = true
77
isolated_build = true
88
distdir = {toxinidir}/dist
@@ -56,8 +56,8 @@ basepython = python3
5656
description = Format python code using isort and black.
5757
changedir = .
5858
deps =
59-
black~=23.1.0
60-
isort~=5.12.0
59+
black~=23.12.1
60+
isort~=5.13.2
6161
skip_install = true
6262
install_command = python3 -m pip install {opts} {packages}
6363
allowlist_externals =
@@ -73,12 +73,14 @@ description = Run coding style checks.
7373
install_command = {toxinidir}/tox-install.sh {toxworkdir} {opts} {packages}
7474
changedir = .
7575
deps =
76-
black~=23.1.0
77-
flake8~=6.1.0
78-
isort~=5.12.0
79-
pylint~=3.0.2
80-
astroid~=3.0.1
81-
setuptools~=68.2.2
76+
astroid~=3.0.2
77+
black~=23.12.1
78+
flake8~=7.0.0
79+
isort~=5.13.2
80+
pycodestyle~=2.11.1
81+
pyflakes~=3.2.0
82+
pylint~=3.0.3
83+
setuptools~=69.0.3
8284
allowlist_externals =
8385
/bin/sh
8486
/usr/bin/sh

0 commit comments

Comments
 (0)