Skip to content

Commit 3fffdf0

Browse files
Fix trailing whitespaces and trailing newlines
1 parent 8403b89 commit 3fffdf0

File tree

158 files changed

+167
-190
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

158 files changed

+167
-190
lines changed

.copyrite_aliases

+2-2
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
2525
2626
27-
27+
2828
],
2929
"authoritative_mail": "[email protected]",
3030
"name": "LOGILAB S.A. (Paris, FRANCE)"
@@ -45,7 +45,7 @@
4545
4646
4747
],
48-
"name": "Google, Inc."
48+
"name": "Google, Inc."
4949
},
5050
{
5151
"mails": [

.github/ISSUE_TEMPLATE/1_Bug_report.md

-1
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,3 @@ about: Report a bug in pylint
2626

2727

2828
### pylint --version output
29-

.github/ISSUE_TEMPLATE/2_Feature_request.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,4 @@ A clear and concise description of what you want to happen.
1919

2020

2121
### Additional context
22-
Add any other context about the feature request here.
22+
Add any other context about the feature request here.

.github/PULL_REQUEST_TEMPLATE.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ https://github.com/PyCQA/pylint/blob/master/doc/development_guide/contribute.rst
2929

3030
## Related Issue
3131

32-
<!--
32+
<!--
3333
If this PR fixes a particular issue, use the following to automatically close that issue
3434
once this PR gets merged:
3535
36-
Closes #XXX
36+
Closes #XXX
3737
-->

COPYING

+5-5
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ patent must be licensed for everyone's free use or not licensed at all.
5555

5656
The precise terms and conditions for copying, distribution and
5757
modification follow.
58-
58+
5959
GNU GENERAL PUBLIC LICENSE
6060
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
6161

@@ -110,7 +110,7 @@ above, provided that you also meet all of these conditions:
110110
License. (Exception: if the Program itself is interactive but
111111
does not normally print such an announcement, your work based on
112112
the Program is not required to print an announcement.)
113-
113+
114114
These requirements apply to the modified work as a whole. If
115115
identifiable sections of that work are not derived from the Program,
116116
and can be reasonably considered independent and separate works in
@@ -168,7 +168,7 @@ access to copy from a designated place, then offering equivalent
168168
access to copy the source code from the same place counts as
169169
distribution of the source code, even though third parties are not
170170
compelled to copy the source along with the object code.
171-
171+
172172
4. You may not copy, modify, sublicense, or distribute the Program
173173
except as expressly provided under this License. Any attempt
174174
otherwise to copy, modify, sublicense or distribute the Program is
@@ -225,7 +225,7 @@ impose that choice.
225225

226226
This section is intended to make thoroughly clear what is believed to
227227
be a consequence of the rest of this License.
228-
228+
229229
8. If the distribution and/or use of the Program is restricted in
230230
certain countries either by patents or by copyrighted interfaces, the
231231
original copyright holder who places the Program under this License
@@ -278,7 +278,7 @@ PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
278278
POSSIBILITY OF SUCH DAMAGES.
279279

280280
END OF TERMS AND CONDITIONS
281-
281+
282282
How to Apply These Terms to Your New Programs
283283

284284
If you develop a new program, and you want it to be of the greatest

debian/NEWS.Debian

-1
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,3 @@ pylint (0.13.2-2) unstable; urgency=low
77
users may get it from /usr/share/doc/pylint/examples/pylint.el
88

99
-- Alexandre Fayolle <[email protected]> Wed, 04 Jul 2007 12:18:23 +0200
10-

debian/changelog

-1
Original file line numberDiff line numberDiff line change
@@ -544,4 +544,3 @@ logilab-pylint (0.1.0-1) unstable; urgency=low
544544
* Initial Release.
545545

546546
-- Sylvain Thénault <[email protected]> Wed, 23 Apr 2003 14:42:05 +0200
547-

debian/copyright

-1
Original file line numberDiff line numberDiff line change
@@ -460,4 +460,3 @@ License: CC-BY-SA-4.0
460460
licenses.
461461
.
462462
Creative Commons may be contacted at creativecommons.org.
463-

debian/pylint.emacsen-install

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ FLAGS="${SITEFLAG} -q -batch -l path.el -f batch-byte-compile"
2323
ELDIR=/usr/share/emacs/site-lisp/${PACKAGE}
2424
ELCDIR=/usr/share/${FLAVOR}/site-lisp/${PACKAGE}
2525

26-
# Install-info-altdir does not actually exist.
26+
# Install-info-altdir does not actually exist.
2727
# Maybe somebody will write it.
2828
if test -x /usr/sbin/install-info-altdir; then
2929
echo install/${PACKAGE}: install Info links for ${FLAVOR}

doc/backlinks.rst

-1
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,3 @@ Python code:
1212
* SaltStack (https://github.com/saltstack)
1313
* CodeFactor (https://github.com/codefactor-io)
1414
* many more...
15-

doc/how_tos/transform_plugins.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ Lets run Pylint with this plugin and see:
101101
amitdev$
102102

103103
All the false positives associated with ``WarningMessage`` are now gone. This is just
104-
an example, any code transformation can be done by plugins.
104+
an example, any code transformation can be done by plugins.
105105

106106
See `astroid/brain`_ for real life examples of transform plugins.
107107

doc/tutorial.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ in open source. Whatever the motivation, your good intentions may not have the
1818
desired outcome if people find your code hard to use or understand. The Python
1919
community has formalized some recommended programming styles to help everyone
2020
write code in a common, agreed-upon style that makes the most sense for shared
21-
code. This style is captured in `PEP 8`_, the "Style Guide for Python Code".
21+
code. This style is captured in `PEP 8`_, the "Style Guide for Python Code".
2222
Pylint can be a quick and easy way of
2323
seeing if your code has captured the essence of `PEP 8`_ and is therefore
2424
``friendly`` to other potential users.

doc/user_guide/index.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ User Guide
1111
output
1212
message-control
1313
options
14-
ide-integration
14+
ide-integration

doc/whatsnew/1.6.rst

+3-3
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ New checkers
2525
2626
for key in dictionary.keys():
2727
...
28-
28+
2929
# Can be refactored to:
3030
for key in dictionary:
3131
...
@@ -80,7 +80,7 @@ New features
8080

8181

8282
* We added a new option, ``redefining-builtins-modules``, which is used for
83-
defining the modules which can redefine builtins.
83+
defining the modules which can redefine builtins.
8484
*pylint* will emit an error when a builtin is redefined, such as defining
8585
a variable called ``next``. But in some cases, the builtins can be
8686
redefined in the case they are imported from other places, different
@@ -102,7 +102,7 @@ Bug fixes
102102
* Fixed a bug where the top name of a qualified import was detected as an unused variable.
103103

104104
* We don't warn about ``invalid-sequence-index`` if the indexed object has unknown
105-
base classes, that Pylint cannot deduce.
105+
base classes, that Pylint cannot deduce.
106106

107107

108108

doc/whatsnew/1.8.rst

+6-6
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ New checkers
5252
5353
# Case1: a=0, b=2, args=(4,5)
5454
foo(0,2,4,5) # 0 2 (4,5) ==> Observed values are same as expected values
55-
55+
5656
# Case2: a=0, b=<default_value>, args=(4,5)
5757
foo(0,4,5) # 0 4 (5,) ==> args list got modified as well as the observed value of b
5858
@@ -253,7 +253,7 @@ New checkers
253253
elif arg < 20:
254254
return
255255
256-
According to PEP8_, if any return statement returns an expression,
256+
According to PEP8_, if any return statement returns an expression,
257257
any return statements where no value is returned should explicitly state this as return None,
258258
and an explicit return statement should be present at the end of the function (if reachable).
259259
Thus, the previous function should be written:
@@ -340,7 +340,7 @@ Other Changes
340340

341341
* ``missing-param-doc`` and ``missing-type-doc`` are no longer emitted when
342342
``Args`` and ``Keyword Args`` are mixed in Google docstring.
343-
343+
344344
* Fix of false positive ``useless-super-delegation`` message when
345345
parameters default values are different from those used in the base class.
346346

@@ -360,9 +360,9 @@ Other Changes
360360

361361
* Fix the ignored ``pylint disable=fixme`` directives for comments following
362362
the last statement in a file.
363-
363+
364364
* Fix ``line-too-long`` message deactivated by wrong disable directive.
365-
The directive ``disable=fixme`` doesn't deactivate anymore the emission
365+
The directive ``disable=fixme`` doesn't deactivate anymore the emission
366366
of ``line-too-long`` message for long commented lines.
367367

368368
* If the rcfile specified on the command line doesn't exist, then an
@@ -371,4 +371,4 @@ Other Changes
371371
* Fix the wrong scope of ``disable=`` directive after a commented line.
372372
For example when a ``disable=line-too-long`` directive is at the end of a
373373
long commented line, it no longer disables the emission of ``line-too-long``
374-
message for lines that follow.
374+
message for lines that follow.

doc/whatsnew/2.4.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ New checkers
130130
Other Changes
131131
=============
132132

133-
* Don't emit ``protected-access`` when a single underscore prefixed attribute is used
133+
* Don't emit ``protected-access`` when a single underscore prefixed attribute is used
134134
inside a special method
135135

136136
Close #1802

elisp/pylint.el

+1-1
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ output buffer, to go to the lines where pylint found matches.
238238
(let ((map (cond
239239
((boundp 'py-mode-map) py-mode-map)
240240
((boundp 'python-mode-map) python-mode-map))))
241-
241+
242242
(define-key map [menu-bar Python pylint-separator]
243243
'("--" . pylint-separator))
244244
(define-key map [menu-bar Python next-error]

examples/pylintrc_camelcase

-2
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,3 @@ argument-rgx=[a-z][a-zA-Z0-9]*$
2020

2121
# Regular expression which should only match correct variable names
2222
variable-rgx=[a-z][a-zA-Z0-9]*$
23-
24-

man/pyreverse.1

+19-19
Original file line numberDiff line numberDiff line change
@@ -4,32 +4,32 @@ pyreverse \- parse python sources files and extract diagrams from
44
them.
55

66
.SH SYNOPSIS
7-
.B pyreverse
7+
.B pyreverse
88
.I [options]
99
<modules>
1010

1111
.SH DESCRIPTION
1212
.B pyreverse
1313
is a python source analyzer. It parses python packages and produces UML
14-
diagrams in different output formats. (dot, all formats available for dot,
14+
diagrams in different output formats. (dot, all formats available for dot,
1515
and vcg).
16-
With different options, you can have fine tuning on what and how modules,
16+
With different options, you can have fine tuning on what and how modules,
1717
classes and attributes will be shown in the diagram.
18-
You can combine several modules in one project (except with
18+
You can combine several modules in one project (except with
1919
.B \-c
2020
).
2121

22-
If no \-c and no \-\-diadefs option specified,
23-
.B pyreverse
24-
will create
22+
If no \-c and no \-\-diadefs option specified,
23+
.B pyreverse
24+
will create
2525
\- a diagram 'classes_<name>' for the classes in <modules> and
2626
( if there is more than one module in <projects> )
27-
\- a diagram 'packages_<name>' for the package dependencies in <modules>
27+
\- a diagram 'packages_<name>' for the package dependencies in <modules>
2828

2929
With \-c <class>,
30-
.B pyreverse
30+
.B pyreverse
3131
creates a diagram for that <class> with filename <class>.<format>.
32-
You can do \-c <class1> , \-c <class2>.
32+
You can do \-c <class1> , \-c <class2>.
3333

3434
.SH OPTIONS
3535

@@ -41,7 +41,7 @@ set project name to <name> if not using \-c option. (default:'No Name')
4141
add files or directories to the blacklist. They should be base names, not
4242
paths. [current: CVS]
4343
.IP "-f<mode>, --filter-mode=<mode>"
44-
filter attributes and functions according to <mode>. You can combine
44+
filter attributes and functions according to <mode>. You can combine
4545
modes using '+' like 'SPECIAL+OTHER'. Correct modes are :
4646
- 'PUB_ONLY' : filter all non public attributes (default)
4747
- 'ALL' : no filter
@@ -53,7 +53,7 @@ create diagram according to the diagram definitions in <file>
5353
.IP "-c <class>, --class=<class>"
5454
create a class diagram with all classes related to <class> [current: none]
5555
the class must be in the file <modules>. By default, this will include all
56-
ancestors and associated classes of <class> and include module names
56+
ancestors and associated classes of <class> and include module names
5757
(i.e. '\-ASmy' ).
5858

5959
.IP "-a <ancestor>, --show-ancestors=<ancestor>"
@@ -62,7 +62,7 @@ show <ancestor> generations of ancestor classes not in <projects>
6262
show all ancestors off all classes in <projects> [current: none]
6363
.IP "-s <ass_level>, --show-associated=<associated>"
6464
show <ass_level> associated classes. <ass_level>=1 will only take classes
65-
directly related to the classes in the project, while <ass_level>=2
65+
directly related to the classes in the project, while <ass_level>=2
6666
will also take all classes related to those fetched by<depth>=1.
6767
.IP "-S, --all-associated=[yn]"
6868
show recursively all associated off all associated classes [current: none]
@@ -74,12 +74,12 @@ include module name in representation of classes. This will include the
7474
full module path in the class name. [current: none]
7575

7676
.IP "-k, --only-classnames"
77-
don't show attributes and methods in the class boxes;
77+
don't show attributes and methods in the class boxes;
7878
this disables \-f values [current: False]
7979

8080
.IP "-o <format>, --output=<format>"
8181
create a *.<format> output file if format available. Available formats
82-
are all formats that dot can produce and
82+
are all formats that dot can produce and
8383
.B vcg.
8484
[default: dot]
8585

@@ -88,8 +88,8 @@ Here are some examples for command line options:
8888

8989
.IP "pyreverse <project> -a1 -s1 -m"
9090

91-
\-a1 \-s1 will include one level of ancestor and associated classes in the
92-
diagram of the <project> modules, while \-m will show the full module
91+
\-a1 \-s1 will include one level of ancestor and associated classes in the
92+
diagram of the <project> modules, while \-m will show the full module
9393
path of each class. You can use the
9494
.B -a, -s, -A, -S
9595
options in the same way.
@@ -99,8 +99,8 @@ Note that on class diagrams (using
9999

100100
.IP "pyreverse mod/foo.py mod/fee.py -k"
101101

102-
This is interesting if the diagram for <project>=mod is too complicated:
103-
you can show only the class names (no attributes or methods, option \-k);
102+
This is interesting if the diagram for <project>=mod is too complicated:
103+
you can show only the class names (no attributes or methods, option \-k);
104104
or take only the modules you are interested in (here fee.py and foo.py).
105105

106106
.SH REQUIRES

man/symilar.1

-1
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,3 @@ Default is 4. So if it finds 3 identical lines, there will be no message, but
3434
.IP "-i, --ignore-comments"
3535
ignore differences concerning only stuff behind a '#' (Python comments). This
3636
means that if just a comment was added, the message will still be triggered.
37-

pylint/utils/pragma_parser.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
.*? # Anything (as little as possible)
1818
\bpylint: # pylint word and column
1919
\s* # Any number of whitespaces
20-
([^;#\n]+)) # Anything except semicolon or hash or newline (it is the second matched group)
20+
([^;#\n]+)) # Anything except semicolon or hash or newline (it is the second matched group)
2121
# and end of the first matched group
2222
[;#]{0,1}""" # From 0 to 1 repetition of semicolon or hash
2323
OPTION_PO = re.compile(OPTION_RGX, re.VERBOSE)

setup.cfg

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[bdist_rpm]
22
packager = Sylvain Thenault <[email protected]>
3-
provides = pylint
3+
provides = pylint
44

55
[aliases]
66
test = pytest
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
[testoptions]
2-
min_pyver=3.0
2+
min_pyver=3.0
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
[testoptions]
2-
min_pyver=3.4
2+
min_pyver=3.4
+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
[testoptions]
2-
min_pyver=3.0
2+
min_pyver=3.0
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
access-member-before-definition:8:Aaaa.__init__:Access to member '_var2' before its definition line 9
2-
access-member-before-definition:28:Bbbb.catchme:Access to member '_repo' before its definition line 30
2+
access-member-before-definition:28:Bbbb.catchme:Access to member '_repo' before its definition line 30
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
[testoptions]
2-
min_pyver=3.0
2+
min_pyver=3.0
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
anomalous-unicode-escape-in-string:5::"Anomalous Unicode escape in byte string: '\u'. String constant might be missing an r or u prefix."
22
anomalous-unicode-escape-in-string:6::"Anomalous Unicode escape in byte string: '\U'. String constant might be missing an r or u prefix."
3-
anomalous-unicode-escape-in-string:8::"Anomalous Unicode escape in byte string: '\N'. String constant might be missing an r or u prefix."
3+
anomalous-unicode-escape-in-string:8::"Anomalous Unicode escape in byte string: '\N'. String constant might be missing an r or u prefix."

0 commit comments

Comments
 (0)