Skip to content

Commit 9e17a6d

Browse files
Bump pylint to 2.15.0-a0, update changelog (#7196)
[doc] Add summary for the release notes
1 parent 9088485 commit 9e17a6d

File tree

8 files changed

+90
-48
lines changed

8 files changed

+90
-48
lines changed

CONTRIBUTORS.txt

+48-35
Large diffs are not rendered by default.

doc/whatsnew/2/2.15/index.rst

+5-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,10 @@
1111
Summary -- Release highlights
1212
=============================
1313

14-
* We improved ``pylint``'s handling of namespace packages. More packages should be
15-
linted without resorting to using the ``-recursive=y`` option.
14+
In pylint 2.15.0, we added a new check ``missing-timeout`` to warn of
15+
default timeout values that could cause a program to be hanging indefinitely.
16+
17+
>e improved ``pylint``'s handling of namespace packages. More packages should
18+
be linted without resorting to using the ``-recursive=y`` option.
1619

1720
.. towncrier release notes start

doc/whatsnew/fragments/6974.internal

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
We changed the way we handle the changelog internally by using towncrier.
2+
If you're a contributor you won't have to fix merge conflicts in the
3+
changelog anymore.
4+
5+
Closes #6974

examples/pylintrc

+14-5
Original file line numberDiff line numberDiff line change
@@ -44,13 +44,15 @@ fail-under=10
4444
# Files or directories to be skipped. They should be base names, not paths.
4545
ignore=CVS
4646

47-
# Add files or directories matching the regex patterns to the ignore-list. The
48-
# regex matches against paths and can be in Posix or Windows format.
47+
# Add files or directories matching the regular expressions patterns to the
48+
# ignore-list. The regex matches against paths and can be in Posix or Windows
49+
# format. Because '\' represents the directory delimiter on Windows systems, it
50+
# can't be used as an escape character.
4951
ignore-paths=
5052

51-
# Files or directories matching the regex patterns are skipped. The regex
52-
# matches against base names, not paths. The default value ignores Emacs file
53-
# locks
53+
# Files or directories matching the regular expression patterns are skipped.
54+
# The regex matches against base names, not paths. The default value ignores
55+
# Emacs file locks
5456
ignore-patterns=^\.#
5557

5658
# List of module names for which member attributes should not be checked
@@ -160,6 +162,13 @@ disable=raw-checker-failed,
160162
enable=c-extension-no-member
161163

162164

165+
[METHOD_ARGS]
166+
167+
# List of qualified names (i.e., library.method) which require a timeout
168+
# parameter e.g. 'requests.api.get,requests.api.post'
169+
timeout-methods=requests.api.delete,requests.api.get,requests.api.head,requests.api.options,requests.api.patch,requests.api.post,requests.api.put,requests.api.request
170+
171+
163172
[EXCEPTIONS]
164173

165174
# Exceptions that will emit a warning when caught.

examples/pyproject.toml

+12-4
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,15 @@ fail-under = 10
3434
# Files or directories to be skipped. They should be base names, not paths.
3535
ignore = ["CVS"]
3636

37-
# Add files or directories matching the regex patterns to the ignore-list. The
38-
# regex matches against paths and can be in Posix or Windows format.
37+
# Add files or directories matching the regular expressions patterns to the
38+
# ignore-list. The regex matches against paths and can be in Posix or Windows
39+
# format. Because '\' represents the directory delimiter on Windows systems, it
40+
# can't be used as an escape character.
3941
# ignore-paths =
4042

41-
# Files or directories matching the regex patterns are skipped. The regex matches
42-
# against base names, not paths. The default value ignores Emacs file locks
43+
# Files or directories matching the regular expression patterns are skipped. The
44+
# regex matches against base names, not paths. The default value ignores Emacs
45+
# file locks
4346
ignore-patterns = ["^\\.#"]
4447

4548
# List of module names for which member attributes should not be checked (useful
@@ -353,6 +356,11 @@ disable = ["raw-checker-failed", "bad-inline-option", "locally-disabled", "file-
353356
# should appear only once). See also the "--disable" option for examples.
354357
enable = ["c-extension-no-member"]
355358

359+
[tool.pylint.method_args]
360+
# List of qualified names (i.e., library.method) which require a timeout
361+
# parameter e.g. 'requests.api.get,requests.api.post'
362+
timeout-methods = ["requests.api.delete", "requests.api.get", "requests.api.head", "requests.api.options", "requests.api.patch", "requests.api.post", "requests.api.put", "requests.api.request"]
363+
356364
[tool.pylint.miscellaneous]
357365
# List of note tags to take in consideration, separated by a comma.
358366
notes = ["FIXME", "XXX", "TODO"]

pylint/__pkginfo__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
from __future__ import annotations
1111

12-
__version__ = "2.15.0-dev0"
12+
__version__ = "2.15.0-a0"
1313

1414

1515
def get_numversion_from_version(v: str) -> tuple[int, int, int]:

script/.contributors_aliases.json

+4
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,10 @@
9797
"mails": ["[email protected]"],
9898
"name": "Allan Chandler"
9999
},
100+
101+
102+
"name": "Adam Williamson"
103+
},
100104
101105
"mails": ["[email protected]"],
102106
"name": "Adrien Di Mascio"

tbump.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
github_url = "https://github.com/PyCQA/pylint"
22

33
[version]
4-
current = "2.15.0-dev0"
4+
current = "2.15.0-a0"
55
regex = '''
66
^(?P<major>0|[1-9]\d*)
77
\.

0 commit comments

Comments
 (0)