Skip to content

Commit 361a1f7

Browse files
Bump pylint to 2.16.0-b0, update changelog
1 parent 2c2fb00 commit 361a1f7

File tree

9 files changed

+35
-27
lines changed

9 files changed

+35
-27
lines changed

CONTRIBUTORS.txt

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -555,6 +555,20 @@ contributors:
555555
* Added ignore_signatures to duplicate checker
556556
- Adam Dangoor <[email protected]>
557557
- 243f6a88 85a308d3 <[email protected]>
558+
- Zen Lee <[email protected]>
559+
- sur.la.route <[email protected]>
560+
561+
- Robert Hofer <[email protected]>
562+
- Ramon Saraiva <[email protected]>
563+
- Osher De Paz <[email protected]>
564+
- Lumír 'Frenzy' Balhar <[email protected]>
565+
- James Addison <[email protected]>
566+
- Eddie Darling <[email protected]>
567+
- David Lawson <[email protected]>
568+
- Cubicpath <[email protected]>
569+
570+
- Brice Chardin <[email protected]>
571+
- Alvaro Frias Garay <[email protected]>
558572

559573

560574
Co-Author

doc/user_guide/checkers/features.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,9 @@ Basic checker Messages
121121
Loops should only have an else clause if they can exit early with a break
122122
statement, otherwise the statements under else should be on the same scope as
123123
the loop itself.
124+
:pointless-exception-statement (W0133): *Exception statement has no effect*
125+
Used when an exception is created without being assigned, raised or returned
126+
for subsequent use elsewhere.
124127
:expression-not-assigned (W0106): *Expression "%s" is assigned to nothing*
125128
Used when an expression that is not a function call is assigned to nothing.
126129
Probably something else was intended.
@@ -147,9 +150,6 @@ Basic checker Messages
147150
This is a particular case of W0104 with its own message so you can easily
148151
disable it if you're using those strings as documentation, instead of
149152
comments.
150-
:pointless-exception-statement (W0132): *Exception statement has no effect*
151-
Used when an exception is created without being assigned, raised or returned
152-
for subsequent use elsewhere.
153153
:unnecessary-pass (W0107): *Unnecessary pass statement*
154154
Used when a "pass" statement that can be avoided is encountered.
155155
:unreachable (W0101): *Unreachable code*

doc/user_guide/configuration/all-options.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1719,7 +1719,7 @@ Extensions
17191719
---------------------------
17201720
--valid-magic-values
17211721
""""""""""""""""""""
1722-
* List of valid magic values that `magic-value-compare` will not detect.*
1722+
*List of valid magic values that `magic-value-compare` will not detect. Supports integers, floats, negative numbers, for empty string enter ``''``, for backslash values just use one backslash e.g \n.*
17231723

17241724
**Default:** ``(0, -1, 1, '', '__main__')``
17251725

doc/user_guide/messages/messages_overview.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,8 +286,8 @@ All messages in the warning category:
286286
warning/non-str-assignment-to-dunder-name
287287
warning/overlapping-except
288288
warning/overridden-final-method
289-
warning/pointless-statement
290289
warning/pointless-exception-statement
290+
warning/pointless-statement
291291
warning/pointless-string-statement
292292
warning/possibly-unused-variable
293293
warning/preferred-module

examples/pylintrc

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
# only in one or another interpreter, leading to false positives when analysed.
66
analyse-fallback-blocks=no
77

8-
# Clear in-memory caches upon conclusion of linting. Useful if running pylint in
9-
# a server-like mode.
8+
# Clear in-memory caches upon conclusion of linting. Useful if running pylint
9+
# in a server-like mode.
1010
clear-cache-post-run=no
1111

1212
# Load and enable all available extensions. Use --list-extensions to see a list
@@ -50,8 +50,8 @@ ignore=CVS
5050

5151
# Add files or directories matching the regular expressions patterns to the
5252
# ignore-list. The regex matches against paths and can be in Posix or Windows
53-
# format. Because '\' represents the directory delimiter on Windows systems, it
54-
# can't be used as an escape character.
53+
# format. Because '\\' represents the directory delimiter on Windows systems,
54+
# it can't be used as an escape character.
5555
ignore-paths=
5656

5757
# Files or directories matching the regular expression patterns are skipped.
@@ -311,8 +311,7 @@ min-public-methods=2
311311
[EXCEPTIONS]
312312

313313
# Exceptions that will emit a warning when caught.
314-
overgeneral-exceptions=builtins.BaseException,
315-
builtins.Exception
314+
overgeneral-exceptions=builtins.BaseException,builtins.Exception
316315

317316

318317
[FORMAT]

examples/pyproject.toml

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ ignore = ["CVS"]
4040

4141
# Add files or directories matching the regular expressions patterns to the
4242
# ignore-list. The regex matches against paths and can be in Posix or Windows
43-
# format. Because '\' represents the directory delimiter on Windows systems, it
43+
# format. Because '\\' represents the directory delimiter on Windows systems, it
4444
# can't be used as an escape character.
4545
# ignore-paths =
4646

@@ -442,15 +442,6 @@ spelling-ignore-comment-directives = "fmt: on,fmt: off,noqa:,noqa,nosec,isort:sk
442442
# --spelling-private-dict-file option) instead of raising a message.
443443
# spelling-store-unknown-words =
444444

445-
[tool.pylint.string]
446-
# This flag controls whether inconsistent-quotes generates a warning when the
447-
# character used as a quote delimiter is used inconsistently within a module.
448-
# check-quote-consistency =
449-
450-
# This flag controls whether the implicit-str-concat should generate a warning on
451-
# implicit string concatenation in sequences defined over several lines.
452-
# check-str-concat-over-line-jumps =
453-
454445
[tool.pylint.typecheck]
455446
# List of decorators that produce context managers, such as
456447
# contextlib.contextmanager. Add to this list to register other decorators that

pylint/__pkginfo__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
from __future__ import annotations
1111

12-
__version__ = "2.16.0-dev"
12+
__version__ = "2.16.0b0"
1313

1414

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

script/.contributors_aliases.json

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,10 @@
7171
"mails": ["[email protected]"],
7272
"name": "Lorena Buciu"
7373
},
74+
75+
"mails": ["[email protected]"],
76+
"name": "Zen Lee"
77+
},
7478
7579
"mails": ["[email protected]"],
7680
"name": "Daniel Brookman"
@@ -347,6 +351,10 @@
347351
348352
"name": "Steven Myint"
349353
},
354+
355+
"mails": ["[email protected]"],
356+
"name": "Robert Hofer"
357+
},
350358
351359
"mails": ["[email protected]"],
352360
"name": "Hugo van Kemenade"
@@ -603,9 +611,5 @@
603611
604612
"mails": ["[email protected]"],
605613
"name": "Yilei \"Dolee\" Yang"
606-
},
607-
608-
"mails": ["[email protected]"],
609-
"name": "Robert Hofer"
610614
}
611615
}

tbump.toml

Lines changed: 1 addition & 1 deletion
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.16.0-dev"
4+
current = "2.16.0b0"
55
regex = '''
66
^(?P<major>0|[1-9]\d*)
77
\.

0 commit comments

Comments
 (0)