Skip to content

Commit

Permalink
🧪 Bump pylint to v3.1.0
Browse files Browse the repository at this point in the history
This version supports Python 3.12 officially. As a part of this patch,
`pylint-pytest` is also updated with the bugfixes needed to stop
capping it.
  • Loading branch information
webknjaz committed Apr 24, 2024
1 parent f156ccd commit f109e85
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 6 deletions.
8 changes: 6 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ repos:
$
- repo: https://github.com/PyCQA/pylint.git
rev: v2.15.9
rev: v3.1.0
hooks:
- id: pylint
additional_dependencies:
Expand All @@ -267,11 +267,15 @@ repos:
- jaraco.text
- more_itertools
- portend
- pylint-pytest < 1.1.0
- pylint-pytest
- pyOpenSSL # needed by pylint-pytest since it picks up pytest's args
- pypytools
- pytest-cov # needed by pylint-pytest since it picks up pytest's args
- pytest-xdist # needed by pylint-pytest since it picks up pytest's args
- requests_toolbelt
- requests_unixsocket
- Sphinx
- trustme # needed by pylint-pytest since it picks up pytest's args

- repo: local
hooks:
Expand Down
11 changes: 7 additions & 4 deletions .pylintrc
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,10 @@ ignore-patterns=

# Python code to execute, usually for sys.path manipulation such as
# pygtk.require().
#init-hook=
# This patch injects the project directory into the import path so that the
# local `pytest` plugin can be imported when `pylint-pytest` invokes it when
# exploring the fixtures available:
init-hook="import os, sys; sys.path[:0] = [os.getcwd()]; os.environ['PYTHONPATH'] = sys.path[0]"

# Use multiple processes to speed up Pylint. Specifying 0 will auto-detect the
# number of processors available to use.
Expand Down Expand Up @@ -635,7 +638,7 @@ preferred-modules=
[EXCEPTIONS]

# Exceptions that will emit a warning when being caught. Defaults to
# "BaseException, Exception".
# "builtins.BaseException, builtins.Exception".
overgeneral-exceptions=
BaseException,
Exception,
builtins.BaseException,
builtins.Exception,

0 comments on commit f109e85

Please sign in to comment.