Debian Codegraph @

doc/whatsnew/2/2.8/summary.rst

raw
1 :Release: 2.8
2 :Date: 2021-04-24
3
4 Summary -- Release highlights
5 =============================
6
7 Breaking changes
8 ================
9
10 * The 'doc' extra-require has been removed. `__pkginfo__`` does not contain the package metadata anymore
11 (except ``numversion``, until 3.0). Meta-information are accessible with
12
13 ```python
14 from importlib import metadata
15 metadata.metadata('pylint')
16 ```
17 Prefer that to an import from ``__pkginfo__``.
18
19 New checkers
20 ============
21
22 * New refactoring message ``consider-using-with``. This message is emitted if resource-allocating functions or methods of the
23 standard library (like ``open()`` or ``threading.Lock.acquire()``) that can be used as a context manager are called without
24 a ``with`` block.
25
26 * Add ``deprecated-argument`` check for deprecated arguments.
27
28 * Add new extension ``ConfusingConsecutiveElifChecker``. This optional checker emits a refactoring message (R5601 ``confusing-consecutive-elif``)
29 if if/elif statements with different indentation levels follow directly one after the other.
30
31 * Add ``consider-using-min-max-builtin`` check for if statement which could be replaced by Python builtin min or max.
32
33 * Add new extension ``TypingChecker``. This optional checker can detect the use of deprecated typing aliases
34 and can suggest the use of the alternative union syntax where possible.
35 (For example, 'typing.Dict' can be replaced by 'dict', and 'typing.Unions' by '|', etc.)
36 Make sure to check the config options if you plan on using it!
37
38 * Add ``deprecated-class`` check for deprecated classes.
39
40 Other Changes
41 =============
42
43 * New option ``--output=<file>`` to output result to a file rather than printing to stdout.
44
45 Closes #1070
46
47 * Reduce usage of blacklist/whitelist terminology. Notably, ``extension-pkg-allow-list`` is an
48 alternative to ``extension-pkg-whitelist`` and the message ``blacklisted-name`` is now emitted as
49 ``disallowed-name``. The previous names are accepted to maintain backward compatibility.
50
51 * The packaging is now done via setuptools exclusively. ``doc``, ``tests``, ``man``, ``elisp`` and ``Changelog`` are
52 not packaged anymore - reducing the size of the package by 75%.
53
54 * Updated ``astroid`` to 2.5.4
55
56 * COPYING has been renamed to LICENSE for standardization.