Skip to content

Commit

Permalink
tox: update lint dependencies for python 3.12
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
rjarry committed Jan 24, 2024
1 parent 4537bc1 commit 2e67e25
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 9 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ jobs:
toxenv: py310
- python: '3.11'
toxenv: py311
- python: '3.12'
toxenv: py312
- python: pypy3.9
toxenv: pypy3
steps:
Expand Down
2 changes: 2 additions & 0 deletions pylintrc
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,8 @@ disable=
too-many-lines,
unnecessary-pass,
unused-argument,
use-implicit-booleaness-not-comparison-to-string,
use-implicit-booleaness-not-comparison-to-zero,
wrong-import-order,

[REPORTS]
Expand Down
20 changes: 11 additions & 9 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# SPDX-License-Identifier: BSD-3-Clause

[tox]
envlist = format,lint,py{36,37,38,39,310,311,py3},coverage
envlist = format,lint,py{36,37,38,39,310,311,312,py3},coverage
skip_missing_interpreters = true
isolated_build = true
distdir = {toxinidir}/dist
Expand Down Expand Up @@ -56,8 +56,8 @@ basepython = python3
description = Format python code using isort and black.
changedir = .
deps =
black~=23.1.0
isort~=5.12.0
black~=23.12.1
isort~=5.13.2
skip_install = true
install_command = python3 -m pip install {opts} {packages}
allowlist_externals =
Expand All @@ -73,12 +73,14 @@ description = Run coding style checks.
install_command = {toxinidir}/tox-install.sh {toxworkdir} {opts} {packages}
changedir = .
deps =
black~=23.1.0
flake8~=6.1.0
isort~=5.12.0
pylint~=3.0.2
astroid~=3.0.1
setuptools~=68.2.2
astroid~=3.0.2
black~=23.12.1
flake8~=7.0.0
isort~=5.13.2
pycodestyle~=2.11.1
pyflakes~=3.2.0
pylint~=3.0.3
setuptools~=69.0.3
allowlist_externals =
/bin/sh
/usr/bin/sh
Expand Down

0 comments on commit 2e67e25

Please sign in to comment.