summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry Pribysh <dmand@yandex.ru>2015-10-22 15:19:04 +0300
committerDmitry Pribysh <dmand@yandex.ru>2015-10-22 15:19:04 +0300
commita4c074d5a2dbe49f52c131c33fea68f60fadef86 (patch)
treea32d0c79ce261dea528d0e32f8cc06276c4d1a2e
parent525a54d010f04157cb2d63768f9a1853783ffbf4 (diff)
downloadpylint-a4c074d5a2dbe49f52c131c33fea68f60fadef86.tar.gz
Fix documentation build warnings and errors
Errors fixed: - unqouted emphasis character usage (*) - missing list index Fixes #481.
-rw-r--r--ChangeLog6
-rw-r--r--doc/run.rst2
-rw-r--r--pylint/checkers/base.py2
-rw-r--r--pylint/checkers/variables.py2
4 files changed, 6 insertions, 6 deletions
diff --git a/ChangeLog b/ChangeLog
index 2003d86..16fe347 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -204,11 +204,11 @@ ChangeLog for Pylint
* yield-outside-func is also emitted for `yield from`.
* Add a new error, 'too-many-star-expressions', emitted when
- there are more than one starred expression (*x) in an assignment.
+ there are more than one starred expression (`*x`) in an assignment.
The warning is emitted only on Python 3.
* Add a new error, 'invalid-star-assignment-target', emitted when
- a starred expression (*x) is used as the lhs side of an assignment,
+ a starred expression (`*x`) is used as the lhs side of an assignment,
as in `*x = [1, 2]`. This is not a SyntaxError on Python 3 though.
* Detect a couple of objects which can't be base classes (bool,
@@ -220,7 +220,7 @@ ChangeLog for Pylint
SyntaxWarning on Python 2.
* Add a new error, 'star-needs-assignment-target', emitted on Python 3 when
- a Starred expression (*x) is not used in an assignment target. This is not
+ a Starred expression (`*x`) is not used in an assignment target. This is not
caught when parsing the AST on Python 3, so it needs to be a separate check.
* Add a new error, 'unsupported-binary-operation', emitted when
diff --git a/doc/run.rst b/doc/run.rst
index 68bc8fd..42f8831 100644
--- a/doc/run.rst
+++ b/doc/run.rst
@@ -95,7 +95,7 @@ command line using the ``--rcfile`` option. Otherwise, Pylint searches for a
configuration file in the following order and uses the first one it finds:
#. ``pylintrc`` in the current working directory
-# ``.pylintrc`` in the current working directory
+#. ``.pylintrc`` in the current working directory
#. If the current working directory is in a Python module, Pylint searches \
up the hierarchy of Python modules until it finds a ``pylintrc`` file. \
This allows you to specify coding standards on a module-by-module \
diff --git a/pylint/checkers/base.py b/pylint/checkers/base.py
index b9955e3..8c13b91 100644
--- a/pylint/checkers/base.py
+++ b/pylint/checkers/base.py
@@ -310,7 +310,7 @@ class BasicErrorChecker(_BasicChecker):
'E0112': ('More than one starred expression in assignment',
'too-many-star-expressions',
'Emitted when there are more than one starred '
- 'expressions (*x) in an assignment. This is a SyntaxError.',
+ 'expressions (`*x`) in an assignment. This is a SyntaxError.',
{'minversion': (3, 0)}),
'E0113': ('Starred assignment target must be in a list or tuple',
'invalid-star-assignment-target',
diff --git a/pylint/checkers/variables.py b/pylint/checkers/variables.py
index 2ce12e8..79f6d05 100644
--- a/pylint/checkers/variables.py
+++ b/pylint/checkers/variables.py
@@ -248,7 +248,7 @@ MSGS = {
'W0614': ('Unused import %s from wildcard import',
'unused-wildcard-import',
'Used when an imported module or variable is not used from a \
- \'from X import *\' style import.'),
+ `\'from X import *\'` style import.'),
'W0621': ('Redefining name %r from outer scope (line %s)',
'redefined-outer-name',