Debian Codegraph @

doc/whatsnew/1/1.0.rst

raw
1 **************************
2 What's New In Pylint 1.0
3 **************************
4
5 Release date: 2013-08-06
6
7 * Add check for the use of 'exec' function
8
9 * New --msg-template option to control output, deprecating "msvc" and
10 "parseable" output formats as well as killing ``--include-ids`` and ``--symbols``
11 options
12
13 * Do not emit [fixme] for every line if the config value 'notes'
14 is empty, but [fixme] is enabled.
15
16 * Emit warnings about lines exceeding the column limit when
17 those lines are inside multiline docstrings.
18
19 * Do not double-check parameter names with the regex for parameters and
20 inline variables.
21
22 * Added a new warning :ref:`missing-final-newline` for files missing
23 the final newline.
24
25 * Methods that are decorated as properties are now treated as attributes
26 for the purposes of name checking.
27
28 * Names of derived instance class member are not checked any more.
29
30 * Names in global statements are now checked against the regular
31 expression for constants.
32
33 * For toplevel name assignment, the class name regex will be used if
34 pylint can detect that value on the right-hand side is a class
35 (like collections.namedtuple()).
36
37 * Simplified :ref:`invalid-name` message
38
39 * Added a new warning invalid-encoded-data (W0512) for files that
40 contain data that cannot be decoded with the specified or
41 default encoding.
42
43 * New warning :ref:`bad-open-mode` for calls to open (or file) that
44 specify invalid open modes (Original implementation by Sasha Issayev).
45
46 * New warning old-style-class (C1001) for classes that do not have any
47 base class.
48
49 * Add new name type 'class_attribute' for attributes defined
50 in class scope. By default, allow both const and variable names.
51
52 * New warning :ref:`trailing-whitespace` that warns about
53 trailing whitespace.
54
55 * Added a new warning unpacking-in-except (W0712) about unpacking
56 exceptions in handlers, which is unsupported in Python 3.
57
58 * Add a configuration option for :ref:`missing-docstring` to
59 optionally exempt short functions/methods/classes from
60 the check.
61
62 * Add the type of the offending node to :ref:`missing-docstring`
63 and :ref:`empty-docstring`.
64
65 * New utility classes for per-checker unittests in testutils.py
66
67 * Do not warn about redefinitions of variables that match the
68 dummy regex.
69
70 * Do not treat all variables starting with _ as dummy variables,
71 only _ itself.
72
73 * Make the :ref:`line-too-long` warning configurable by adding a regex for lines
74 for with the length limit should not be enforced
75
76 * Do not warn about a long line if a pylint disable
77 option brings it above the length limit
78
79 * Do not flag names in nested with statements as undefined.
80
81 * Added a new warning 'old-raise-syntax' for the deprecated syntax
82 raise Exception, args
83
84 * Support for PEP 3102 and new :ref:`missing-kwoa` message for missing
85 mandatory keyword argument
86
87 Closes Logilab #107788
88
89 * Fix spelling of max-branchs option, now max-branches
90
91 * Added a new base class and interface for checkers that work on the
92 tokens rather than the syntax, and only tokenize the input file
93 once.
94
95 * Follow astng renaming to astroid
96
97 * Check for unbalanced unpacking in assignments
98
99 Closes BitBucket #37
100
101 * Fix incomplete-protocol false positive for read-only containers like tuple
102
103 Closes BitBucket #25
104
105 * Fix False positive E1003 on Python 3 for argument-less super()
106
107 Closes BitBucket #16
108
109 * Put back documentation in source distribution
110
111 Closes BitBucket #6
112
113 * epylint shouldn't hang anymore when there is a large output on pylint'stderr
114
115 Closes BitBucket #15
116
117 * Fix epylint w/ python3
118
119 Closes BitBucket #7
120
121 * Remove string module from the default list of deprecated modules
122
123 Closes BitBucket #3