Skip to content

Commit 214201a

Browse files
[doc] Add a check for changelogs and fix the issues encountered (#6735)
1 parent c2b9144 commit 214201a

36 files changed

+1105
-680
lines changed

.pre-commit-config.yaml

+7
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,13 @@ repos:
7474
args: ["-rn", "-sn", "--rcfile=pylintrc", "--fail-on=I", "--spelling-dict=en"]
7575
exclude: tests/functional/|tests/input|tests(/\w*)*data/|doc/
7676
stages: [manual]
77+
- id: check-changelog
78+
alias: check-changelog
79+
name: check-changelog
80+
types: [text]
81+
entry: python3 script/check_changelog.py
82+
pass_filenames: false
83+
language: system
7784
- id: fix-documentation
7885
name: Fix documentation
7986
entry: python3 -m script.fix_documentation

.pyenchant_pylint_custom_dict.txt

+3
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ BaseChecker
2525
basename
2626
behaviour
2727
bidi
28+
Bitbucket
2829
bla
2930
bom
3031
bool
@@ -172,6 +173,7 @@ linkers
172173
linter
173174
linux
174175
listcomp
176+
Logilab
175177
longstring
176178
lsp
177179
mapfile
@@ -351,4 +353,5 @@ wc
351353
xfails
352354
xml
353355
xyz
356+
yml
354357
yoda

doc/development_guide/contributor_guide/tests/install.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ This ensures your testing environment is similar to Pylint's testing environment
2525

2626
**Optionally** (Because there's an auto-fix if you open a merge request): We have
2727
pre-commit hooks which should take care of the autoformatting for you before each
28-
commits. To enable it, run ``pre-commit install`` in the ``pylint`` root directory.
28+
commit. To enable it, run ``pre-commit install`` in the ``pylint`` root directory.
2929

3030
Astroid installation
3131
--------------------

doc/whatsnew/0/0.x.rst

+11-11
Original file line numberDiff line numberDiff line change
@@ -658,7 +658,7 @@ Release date: 2006-08-10
658658
* started a reference user manual
659659

660660
* new W0212 message for access to protected member from client code
661-
(close #14081)
661+
(Closes #14081)
662662

663663
* new W0105 and W0106 messages extracted from W0104 (statement seems
664664
to have no effect) respectively when the statement is actually string
@@ -668,7 +668,7 @@ Release date: 2006-08-10
668668
* reclassified W0302 to C0302
669669

670670
* fix so that global messages are not anymore connected to the last
671-
analyzed module (close #10106)
671+
analyzed module (Closes #10106)
672672

673673
* fix some bugs related to local disabling of messages
674674

@@ -708,7 +708,7 @@ Release date: 2006-03-06
708708

709709
* W0705 has been reclassified to E0701, and is now detecting more
710710
inheriting problem, and a false positive when empty except clause is
711-
following an Exception catch has been fixed (close #10422)
711+
following an Exception catch has been fixed (Closes #10422)
712712

713713
* E0212 and E0214 (metaclass/class method should have mcs/cls as first
714714
argument have been reclassified to C0202 and C0203 since this not as
@@ -812,13 +812,13 @@ Release date: 2005-11-07
812812
module whose name starts with a deprecated module's name (close
813813
#10061)
814814

815-
* fix "module has no name __dict__" false positive (close #10039)
815+
* fix "module has no name __dict__" false positive (Closes #10039)
816816

817817
* fix "access to undefined variable __path__" false positive (close
818818
#10065)
819819

820820
* fix "explicit return in __init__" false positive when return is
821-
actually in an inner function (close #10075)
821+
actually in an inner function (Closes #10075)
822822

823823

824824
What's New in Pylint 0.8.0?
@@ -835,7 +835,7 @@ Release date: 2005-10-21
835835

836836
* new --acquired-members option on the classes checker, used when
837837
--zope=yes to avoid false positive on acquired attributes (listed
838-
using this new option) (close #8616)
838+
using this new option) (Closes #8616)
839839

840840
* generate one E0602 for each use of an undefined variable
841841
(previously, only one for the first use but not for the following)
@@ -855,11 +855,11 @@ Release date: 2005-10-21
855855
* fix astng checkers traversal order
856856

857857
* fix bug in format checker when parsing a file from a platform
858-
using different new line characters (close #9239)
858+
using different new line characters (Closes #9239)
859859

860860
* fix encoding detection regexp
861861

862-
* fix --rcfile handling (support for --rcfile=file, close #9590)
862+
* fix --rcfile handling (support for --rcfile=file, Closes #9590)
863863

864864

865865
What's New in Pylint 0.7.0?
@@ -896,11 +896,11 @@ Release date: 2005-04-14
896896
* don't fail if we are unable to read an inline option (e.g. inside a
897897
module), just produce an information message (test func_i0010)
898898

899-
* new message E0103 for break or continue outside loop (close #8883,
899+
* new message E0103 for break or continue outside loop (Closes #8883,
900900
test func_continue_not_in_loop)
901901

902902
* fix bug in the variables checker, causing non detection of some
903-
actual name error (close #8884, test
903+
actual name error (Closes #8884, test
904904
func_nameerror_on_string_substitution)
905905

906906
* fix bug in the classes checker which was making pylint crash if
@@ -980,7 +980,7 @@ Release date: 2005-01-20
980980
* correctly detect access to member defined latter in __init__ method
981981

982982
* now depends on common 0.8.1 to fix problem with interface resolution
983-
(close #8606)
983+
(Closes #8606)
984984

985985
* new --list-msgs option describing available checkers and their
986986
messages

doc/whatsnew/1/1.2.rst

+25-14
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Release date: 2014-04-30
77
* Restore the ability to specify the init-hook option via the
88
configuration file, which was accidentally broken in 1.2.0.
99

10-
* Add a new warning [bad-continuation] for badly indentend continued
10+
* Add a new warning [bad-continuation] for badly indented continued
1111
lines.
1212

1313
* Emit [assignment-from-none] when the function contains bare returns.
@@ -25,7 +25,8 @@ Release date: 2014-04-30
2525
* Fix explicit checking of python script (1.2 regression, #219)
2626

2727
* Restore --init-hook, renamed accidentally into --init-hooks in 1.2.0
28-
(#211)
28+
29+
Closes #211
2930

3031
* Add 'indexing-exception' warning, which detects that indexing
3132
an exception occurs in Python 2 (behaviour removed in Python 3).
@@ -73,7 +74,8 @@ Release date: 2014-04-18
7374
configurable; contributed by [email protected].
7475

7576
* ensure init-hooks is evaluated before other options, notably load-plugins
76-
(#166)
77+
78+
Closes #166
7779

7880
* Python 2.5 support restored: fixed small issues preventing pylint to run
7981
on python 2.5. Bitbucket issues #50 and #62.
@@ -83,9 +85,9 @@ Release date: 2014-04-18
8385
assignments.
8486

8587
* Add new warning, 'bad-reversed-sequence', for checking that the
86-
reversed() builtin receive a sequence (implements __getitem__ and __len__,
88+
reversed() builtin receive a sequence (implements ``__getitem__`` and ``__len__``,
8789
without being a dict or a dict subclass) or an instance which implements
88-
__reversed__.
90+
``__reversed__``.
8991

9092
* Mark ``file`` as a bad function when using python2 (closes #8).
9193

@@ -101,26 +103,35 @@ Release date: 2014-04-18
101103

102104
* Add a new warning 'abstract-class-instantiated' for checking
103105
that abstract classes created with ``abc`` module and
104-
with abstract methods are instantied.
106+
with abstract methods are instantiated.
105107

106108
* Do not warn about 'return-arg-in-generator' in Python 3.3+.
107109

108110
* Do not warn about 'abstract-method' when the abstract method
109-
is implemented through assignment (#155).
111+
is implemented through assignment
110112

111-
* Improve cyclic import detection in the case of packages, patch by Buck
112-
Golemon
113+
Closes #155
114+
115+
* Improve cyclic import detection in the case of packages, patch by Buck Golemon
113116

114117
* Add new warnings for checking proper class __slots__:
115118
``invalid-slots-object`` and ``invalid-slots``.
116119

117120
* Search for rc file in `~/.config/pylintrc` if `~/.pylintrc`
118-
doesn't exists (#121)
121+
doesn't exists
122+
123+
Closes #121
124+
125+
* Don't register the new style checker w/ python >= 3
126+
127+
* Fix unused-import false positive w/ augment assignment
128+
129+
Closes #78
119130

120-
* Don't register the newstyle checker w/ python >= 3
131+
* Fix access-member-before-definition false negative wrt aug assign
121132

122-
* Fix unused-import false positive w/ augment assignment (#78)
133+
Closes #164
123134

124-
* Fix access-member-before-definition false negative wrt aug assign (#164)
135+
* Do not attempt to analyze non python file, e.g. .so file
125136

126-
* Do not attempt to analyze non python file, e.g. .so file (#122)
137+
Closes #122

doc/whatsnew/1/1.3.rst

+51-19
Original file line numberDiff line numberDiff line change
@@ -5,25 +5,36 @@
55
Release date: 2014-07-26
66

77
* Allow hanging continued indentation for implicitly concatenated
8-
strings. Closes issue #232.
8+
strings.
9+
10+
Closes #232.
911

1012
* Pylint works under Python 2.5 again, and its test suite passes.
1113

1214
* Fix some false positives for the cellvar-from-loop warnings.
13-
Closes issue #233.
15+
16+
Closes #233.
1417

1518
* Return new astroid class nodes when the inferencer can detect that
1619
that result of a function invocation on a type (like ``type`` or
17-
`abc.ABCMeta`) is requested. Closes #205.
20+
`abc.ABCMeta`) is requested.
21+
22+
Closes #205.
1823

1924
* Emit 'undefined-variable' for undefined names when using the
2025
Python 3 ``metaclass=`` argument.
2126

22-
* Checkers respect priority now. Close issue #229.
27+
* Checkers respect priority now.
28+
29+
Closes #229
30+
31+
* Fix a false positive regarding W0511.
2332

24-
* Fix a false positive regarding W0511. Closes issue #149.
33+
Closes #149.
2534

26-
* Fix unused-import false positive with Python 3 metaclasses (#143).
35+
* Fix unused-import false positive with Python 3 metaclasses
36+
37+
Closes #143
2738

2839
* Don't warn with 'bad-format-character' when encountering
2940
the 'a' format on Python 3.
@@ -34,15 +45,23 @@ Release date: 2014-07-26
3445
'missing-format-attribute' and 'invalid-format-index'.
3546

3647
* Issue broad-except and bare-except even if the number
37-
of except handlers is different than 1. Fixes issue #113.
48+
of except handlers is different than 1.
49+
50+
Closes #113
3851

3952
* Issue attribute-defined-outside-init for all cases, not just
40-
for the last assignment. Closes issue #262.
53+
for the last assignment.
54+
55+
Closes #262
4156

42-
* Emit 'not-callable' when calling properties. Closes issue #268.
57+
* Emit 'not-callable' when calling properties.
58+
59+
Closes #268.
4360

4461
* Fix a false positive with unbalanced iterable unpacking,
45-
when encountering starred nodes. Closes issue #273.
62+
when encountering starred nodes.
63+
64+
Closes #273.
4665

4766
* Add new checks, 'invalid-slice-index' and 'invalid-sequence-index'
4867
for invalid sequence and slice indices.
@@ -51,25 +70,35 @@ Release date: 2014-07-26
5170
attributes not defined in slots.
5271

5372
* Don't emit 'no-name-in-module' for ignored modules.
54-
Closes issue #223.
73+
74+
Closes #223.
5575

5676
* Fix an 'unused-variable' false positive, where the variable is
57-
assigned through an import. Closes issue #196.
77+
assigned through an import.
78+
79+
Closes #196.
5880

5981
* Definition order is considered for classes, function arguments
60-
and annotations. Closes issue #257.
82+
and annotations.
83+
84+
Closes #257.
6185

6286
* Don't emit 'unused-variable' when assigning to a nonlocal.
63-
Closes issue #275.
87+
88+
Closes #275.
6489

6590
* Do not let ImportError propagate from the import checker, leading to crash
66-
in some namespace package related cases. Closes issue #203.
91+
in some namespace package related cases.
92+
93+
Closes #203.
6794

6895
* Don't emit 'pointless-string-statement' for attribute docstrings.
69-
Closes issue #193.
96+
97+
Closes #193.
7098

7199
* Use the proper mode for pickle when opening and writing the stats file.
72-
Closes issue #148.
100+
101+
Closes #148.
73102

74103
* Don't emit hidden-method message when the attribute has been
75104
monkey-patched, you're on your own when you do that.
@@ -78,7 +107,10 @@ Release date: 2014-07-26
78107
module as the offended class, avoiding to mangle the output in some cases.
79108

80109
* Don't emit 'unnecessary-lambda' if the body of the lambda call contains
81-
call chaining. Closes issue #243.
110+
call chaining.
111+
112+
Closes #243.
82113

83114
* Don't emit 'missing-docstring' when the actual docstring uses ``.format``.
84-
Closes issue #281.
115+
116+
Closes #281.

0 commit comments

Comments
 (0)