Skip to content

Commit bee1dd3

Browse files
[doc] Add a check for changelogs and fix the issues encountered
1 parent d4d910a commit bee1dd3

File tree

34 files changed

+1030
-659
lines changed

34 files changed

+1030
-659
lines changed

.pre-commit-config.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,14 @@ 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+
args: ["--verbose"]
82+
entry: python3 script/check_changelog.py
83+
pass_filenames: false
84+
language: system
7785
- id: fix-documentation
7886
name: Fix documentation
7987
entry: python3 -m script.fix_documentation

doc/development_guide/contributor_guide/tests/install.rst

Lines changed: 1 addition & 1 deletion
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

Lines changed: 11 additions & 11 deletions
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.3.rst

Lines changed: 45 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -5,23 +5,32 @@
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

2635
* Fix unused-import false positive with Python 3 metaclasses (#143).
2736

@@ -37,12 +46,18 @@ Release date: 2014-07-26
3746
of except handlers is different than 1. Fixes issue #113.
3847

3948
* Issue attribute-defined-outside-init for all cases, not just
40-
for the last assignment. Closes issue #262.
49+
for the last assignment.
4150

42-
* Emit 'not-callable' when calling properties. Closes issue #268.
51+
Closes #262.
52+
53+
* Emit 'not-callable' when calling properties.
54+
55+
Closes #268.
4356

4457
* Fix a false positive with unbalanced iterable unpacking,
45-
when encountering starred nodes. Closes issue #273.
58+
when encountering starred nodes.
59+
60+
Closes #273.
4661

4762
* Add new checks, 'invalid-slice-index' and 'invalid-sequence-index'
4863
for invalid sequence and slice indices.
@@ -51,25 +66,35 @@ Release date: 2014-07-26
5166
attributes not defined in slots.
5267

5368
* Don't emit 'no-name-in-module' for ignored modules.
54-
Closes issue #223.
69+
70+
Closes #223.
5571

5672
* Fix an 'unused-variable' false positive, where the variable is
57-
assigned through an import. Closes issue #196.
73+
assigned through an import.
74+
75+
Closes #196.
5876

5977
* Definition order is considered for classes, function arguments
60-
and annotations. Closes issue #257.
78+
and annotations.
79+
80+
Closes #257.
6181

6282
* Don't emit 'unused-variable' when assigning to a nonlocal.
63-
Closes issue #275.
83+
84+
Closes #275.
6485

6586
* Do not let ImportError propagate from the import checker, leading to crash
66-
in some namespace package related cases. Closes issue #203.
87+
in some namespace package related cases.
88+
89+
Closes #203.
6790

6891
* Don't emit 'pointless-string-statement' for attribute docstrings.
69-
Closes issue #193.
92+
93+
Closes #193.
7094

7195
* Use the proper mode for pickle when opening and writing the stats file.
72-
Closes issue #148.
96+
97+
Closes #148.
7398

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

80105
* Don't emit 'unnecessary-lambda' if the body of the lambda call contains
81-
call chaining. Closes issue #243.
106+
call chaining.
107+
108+
Closes #243.
82109

83110
* Don't emit 'missing-docstring' when the actual docstring uses ``.format``.
84-
Closes issue #281.
111+
112+
Closes #281.

0 commit comments

Comments
 (0)