Skip to content

Commit 4faccd0

Browse files
Fix the changelog and whatsnew retroactively for 2.7 release
Remove everything that was in 2.6 changelog when it should be in 2.7 following the decision taken in #3831. This can be checked with ``` git remote add pyorigin [email protected]:PyCQA/pylint.git git diff pyorigin/2.6 doc/whatsnew/ git diff pyorigin/2.6 ChangeLog ``` The idea is that nothing should be added between 2.6 and now in a 2.6 portion everything done between now and 2.6 should be in 2.7.
1 parent 1093e5d commit 4faccd0

File tree

4 files changed

+75
-46
lines changed

4 files changed

+75
-46
lines changed

ChangeLog

Lines changed: 24 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
------------------
22
Pylint's ChangeLog
33
------------------
4+
5+
What's New in Pylint 2.7.0?
6+
===========================
7+
48
* Python 3.6+ is now required.
59

610
* Bug fix for empty-comment message line number.
@@ -53,10 +57,6 @@ Pylint's ChangeLog
5357

5458
* Fix issue with nested PEP 604 syntax
5559

56-
What's New in Pylint 2.6.1?
57-
===========================
58-
Release date: TBA
59-
6060
* Fix a crash in `undefined-variable` caused by chained attributes in metaclass
6161

6262
Close #3742
@@ -148,6 +148,26 @@ Release date: TBA
148148

149149
Close #2498
150150

151+
* Add check for bool function to `len-as-condition`
152+
153+
* Add `simplifiable-condition` check for extraneous constants in conditionals using and/or.
154+
155+
* Add `condition-evals-to-constant` check for conditionals using and/or that evaluate to a constant.
156+
157+
Close #3407
158+
159+
* Changed setup.py to work with [distlib](https://pypi.org/project/distlib)
160+
161+
Close #3555
162+
163+
What's New in Pylint 2.6.1?
164+
===========================
165+
166+
* Astroid version has been set as < 2.5
167+
168+
Close #4093
169+
170+
151171
What's New in Pylint 2.6.0?
152172
===========================
153173

@@ -197,17 +217,6 @@ Release date: 2020-08-20
197217

198218
Close #3722
199219

200-
* Add check for bool function to `len-as-condition`
201-
202-
* Add `simplifiable-condition` check for extraneous constants in conditionals using and/or.
203-
204-
* Add `condition-evals-to-constant` check for conditionals using and/or that evaluate to a constant.
205-
206-
Close #3407
207-
208-
* Changed setup.py to work with [distlib](https://pypi.org/project/distlib)
209-
210-
Close #3555
211220

212221
What's New in Pylint 2.5.4?
213222
===========================

doc/whatsnew/2.6.rst

Lines changed: 2 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -5,45 +5,22 @@
55
:Release: 2.6
66
:Date: 2020-08-20
77

8-
98
Summary -- Release highlights
109
=============================
1110

12-
* Python 3.6+ is now required.
11+
* `bad-continuation` and `bad-whitespace` have been removed. `black` or another formatter can help you with this better than Pylint
12+
* Added support for isort 5
1313

1414
New checkers
1515
============
1616

17-
* Add support to ``ignored-argument-names`` in DocstringParameterChecker and
18-
adds `useless-param-doc` and `useless-type-doc` messages.
19-
20-
* Add `empty-comment` check for empty comments.
21-
2217
* Add `super-with-arguments` check for flagging instances of Python 2 style super calls.
2318

2419
* Add `raise-missing-from` check for exceptions that should have a cause.
2520

26-
* Add `simplifiable-condition` check for extraneous constants in conditionals using and/or.
27-
28-
* Add `condition-evals-to-constant` check for conditionals using and/or that evaluate to a constant.
29-
3021
Other Changes
3122
=============
3223

33-
* Fix linter multiprocessing pool shutdown which triggered warnings when runned in parallels with other pytest plugins.
34-
35-
* Enums are now required to be named in UPPER_CASE by ``invalid-name``.
36-
37-
* Fix bug that lead to duplicate messages when using ``--jobs 2`` or more.
38-
39-
* Adds option ``check-protected-access-in-special-methods`` in the ClassChecker to activate/deactivate
40-
``protected-access`` message emission for single underscore prefixed attribute in special methods.
41-
42-
* ``inconsistent-return-statements`` message is now emitted if one of ``try/except`` statement
43-
is not returning explicitly while the other do.
44-
45-
* Fix false positive message ``useless-super-delegation`` when default keyword argument is a dictionnary.
46-
4724
* `bad-continuation` and `bad-whitespace` have been removed. `black` or another formatter can help you with this better than Pylint
4825

4926
* The `no-space-check` option has been removed, it's no longer possible to consider empty line like a `trailing-whitespace` by using clever options.
@@ -54,10 +31,4 @@ Other Changes
5431

5532
* Add support for both isort 4 and isort 5. If you have pinned isort 4 in your projet requirements, nothing changes. If you use isort 5, though, note that the `known-standard-library` option is not interpreted the same in isort 4 and isort 5 (see `the migration guide in isort documentation`_ for further details). For compatibility's sake for most pylint users, the `known-standard-library` option in pylint now maps to `extra-standard-library` in isort 5. If you really want what `known-standard-library` now means in isort 5, you must disable the `wrong-import-order` check in pylint and run isort manually with a proper isort configuration file.
5633

57-
* Fix vulnerable regular expressions in ``pyreverse``. The ambiguities of vulnerable regular expressions are removed, making the repaired regular expressions safer and faster matching.
58-
5934
.. _the migration guide in isort documentation: https://timothycrosley.github.io/isort/docs/upgrade_guides/5.0.0/#known_standard_library
60-
61-
* `len-as-conditions` is now triggered only for classes that are inheriting directly from list, dict, or set and not implementing the `__bool__` function, or from generators like range or list/dict/set comprehension. This should reduce the false positive for other classes, like pandas's DataFrame or numpy's Array.
62-
63-
* Fixes duplicate code detection for --jobs=2+

doc/whatsnew/2.7.rst

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
**************************
2+
What's New in Pylint 2.7
3+
**************************
4+
5+
:Release: 2.7
6+
:Date: 2021-02-XX
7+
8+
Summary -- Release highlights
9+
=============================
10+
11+
* No more duplicate messages when using multiple jobs.
12+
* Handling of the new typing provided by mypy 0.8
13+
* Python 3.6+ is now required.
14+
15+
New checkers
16+
============
17+
18+
* Add support to ``ignored-argument-names`` in DocstringParameterChecker and
19+
adds `useless-param-doc` and `useless-type-doc` messages.
20+
21+
* Add `empty-comment` check for empty comments.
22+
23+
* Add `simplifiable-condition` check for extraneous constants in conditionals using and/or.
24+
25+
* Add `condition-evals-to-constant` check for conditionals using and/or that evaluate to a constant.
26+
27+
Other Changes
28+
=============
29+
30+
* Fix linter multiprocessing pool shutdown which triggered warnings when runned in parallels with other pytest plugins.
31+
32+
* Enums are now required to be named in UPPER_CASE by ``invalid-name``.
33+
34+
* Fix bug that lead to duplicate messages when using ``--jobs 2`` or more.
35+
36+
* Adds option ``check-protected-access-in-special-methods`` in the ClassChecker to activate/deactivate
37+
``protected-access`` message emission for single underscore prefixed attribute in special methods.
38+
39+
* ``inconsistent-return-statements`` message is now emitted if one of ``try/except`` statement
40+
is not returning explicitly while the other do.
41+
42+
* Fix false positive message ``useless-super-delegation`` when default keyword argument is a dictionary.
43+
44+
* Fix vulnerable regular expressions in ``pyreverse``. The ambiguities of vulnerable regular expressions are removed, making the repaired regular expressions safer and faster matching.
45+
46+
* `len-as-conditions` is now triggered only for classes that are inheriting directly from list, dict, or set and not implementing the `__bool__` function, or from generators like range or list/dict/set comprehension. This should reduce the false positive for other classes, like pandas's DataFrame or numpy's Array.
47+
48+
* Fixes duplicate code detection for --jobs=2+

doc/whatsnew/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ High level descriptions of the most important changes between major Pylint versi
99
.. toctree::
1010
:maxdepth: 1
1111

12+
2.7.rst
1213
2.6.rst
1314
2.5.rst
1415
2.4.rst

0 commit comments

Comments
 (0)