gionniboy / howisresolved

how is resolved a given domain from differents nameservers
BSD 3-Clause "New" or "Revised" License
7 stars 3 forks source link

PyUp Scheduled biweekly dependency update for week 05 #78

Closed pyup-bot closed 5 years ago

pyup-bot commented 5 years ago

Update certifi from 2018.4.16 to 2018.11.29.

The bot wasn't able to find a changelog for this release. Got an idea?

Links - PyPI: https://pypi.org/project/certifi - Homepage: https://certifi.io/

Update decorator from 4.3.0 to 4.3.2.

Changelog ### 4.3.2 ``` Accepted a patch from Sylvain Marie (https://github.com/smarie): now the decorator module can decorate generator functions by preserving their being generator functions. Set `python_requires='>=2.6, !=3.0.*, !=3.1.*'` in setup.py, as suggested by https://github.com/hugovk. ``` ### 4.3.1 ``` Added a section "For the impatient" to the README, addressing an issue raised by Amir Malekpour. Added support for Python 3.7. Now the path to the decorator module appears in the tracebacks, as suggested by an user at EuroPython 2018. ```
Links - PyPI: https://pypi.org/project/decorator - Changelog: https://pyup.io/changelogs/decorator/ - Repo: https://github.com/micheles/decorator

Update dnspython from 1.15.0 to 1.16.0.

The bot wasn't able to find a changelog for this release. Got an idea?

Links - PyPI: https://pypi.org/project/dnspython - Homepage: http://www.dnspython.org

Update idna from 2.6 to 2.8.

Changelog ### 2.8 ``` ++++++++++++++++ - Update to Unicode 11.0.0. - Provide more specific exceptions for some malformed labels. ``` ### 2.7 ``` ++++++++++++++++ - Update to Unicode 10.0.0. - No longer accepts dot-prefixed domains (e.g. ".example") as valid. This is to be more conformant with the UTS 46 spec. Users should strip dot prefixes from domains before processing. ```
Links - PyPI: https://pypi.org/project/idna - Changelog: https://pyup.io/changelogs/idna/ - Repo: https://github.com/kjd/idna

Update requests from 2.18.4 to 2.21.0.

Changelog ### 2.21.0 ``` ------------------- **Dependencies** - Requests now supports idna v2.8. ``` ### 2.20.1 ``` ------------------- **Bugfixes** - Fixed bug with unintended Authorization header stripping for redirects using default ports (http/80, https/443). ``` ### 2.20.0 ``` ------------------- **Bugfixes** - Content-Type header parsing is now case-insensitive (e.g. charset=utf8 v Charset=utf8). - Fixed exception leak where certain redirect urls would raise uncaught urllib3 exceptions. - Requests removes Authorization header from requests redirected from https to http on the same hostname. (CVE-2018-18074) - `should_bypass_proxies` now handles URIs without hostnames (e.g. files). **Dependencies** - Requests now supports urllib3 v1.24. **Deprecations** - Requests has officially stopped support for Python 2.6. ``` ### 2.19.1 ``` ------------------- **Bugfixes** - Fixed issue where status\_codes.py's `init` function failed trying to append to a `__doc__` value of `None`. ``` ### 2.19.0 ``` ------------------- **Improvements** - Warn user about possible slowdown when using cryptography version < 1.3.4 - Check for invalid host in proxy URL, before forwarding request to adapter. - Fragments are now properly maintained across redirects. (RFC7231 7.1.2) - Removed use of cgi module to expedite library load time. - Added support for SHA-256 and SHA-512 digest auth algorithms. - Minor performance improvement to `Request.content`. - Migrate to using collections.abc for 3.7 compatibility. **Bugfixes** - Parsing empty `Link` headers with `parse_header_links()` no longer return one bogus entry. - Fixed issue where loading the default certificate bundle from a zip archive would raise an `IOError`. - Fixed issue with unexpected `ImportError` on windows system which do not support `winreg` module. - DNS resolution in proxy bypass no longer includes the username and password in the request. This also fixes the issue of DNS queries failing on macOS. - Properly normalize adapter prefixes for url comparison. - Passing `None` as a file pointer to the `files` param no longer raises an exception. - Calling `copy` on a `RequestsCookieJar` will now preserve the cookie policy correctly. **Dependencies** - We now support idna v2.7. - We now support urllib3 v1.23. ```
Links - PyPI: https://pypi.org/project/requests - Changelog: https://pyup.io/changelogs/requests/ - Homepage: http://python-requests.org

Update six from 1.11.0 to 1.12.0.

Changelog ### 1.12.0 ``` ------ - Issue 259, pull request 260: `six.add_metaclass` now preserves `__qualname__` from the original class. - Pull request 204: Add `six.ensure_binary`, `six.ensure_text`, and `six.ensure_str`. ```
Links - PyPI: https://pypi.org/project/six - Changelog: https://pyup.io/changelogs/six/ - Repo: https://github.com/benjaminp/six - Docs: https://pythonhosted.org/six/

Update urllib3 from 1.22 to 1.24.1.

Changelog ### 1.24 ``` ----------------- * Allow key_server_hostname to be specified when initializing a PoolManager to allow custom SNI to be overridden. (Pull 1449) * Test against Python 3.7 on AppVeyor. (Pull 1453) * Early-out ipv6 checks when running on App Engine. (Pull 1450) * Change ambiguous description of backoff_factor (Pull 1436) * Add ability to handle multiple Content-Encodings (Issue 1441 and Pull 1442) * Skip DNS names that can't be idna-decoded when using pyOpenSSL (Issue 1405). * Add a server_hostname parameter to HTTPSConnection which allows for overriding the SNI hostname sent in the handshake. (Pull 1397) * Drop support for EOL Python 2.6 (Pull 1429 and Pull 1430) * Fixed bug where responses with header Content-Type: message/* erroneously raised HeaderParsingError, resulting in a warning being logged. (Pull 1439) * Move urllib3 to src/urllib3 (Pull 1409) ``` ### 1.23 ``` ----------------- * Allow providing a list of headers to strip from requests when redirecting to a different host. Defaults to the ``Authorization`` header. Different headers can be set via ``Retry.remove_headers_on_redirect``. (Issue 1316) * Fix ``util.selectors._fileobj_to_fd`` to accept ``long`` (Issue 1247). * Dropped Python 3.3 support. (Pull 1242) * Put the connection back in the pool when calling stream() or read_chunked() on a chunked HEAD response. (Issue 1234) * Fixed pyOpenSSL-specific ssl client authentication issue when clients attempted to auth via certificate + chain (Issue 1060) * Add the port to the connectionpool connect print (Pull 1251) * Don't use the ``uuid`` module to create multipart data boundaries. (Pull 1380) * ``read_chunked()`` on a closed response returns no chunks. (Issue 1088) * Add Python 2.6 support to ``contrib.securetransport`` (Pull 1359) * Added support for auth info in url for SOCKS proxy (Pull 1363) ```
Links - PyPI: https://pypi.org/project/urllib3 - Changelog: https://pyup.io/changelogs/urllib3/ - Docs: https://urllib3.readthedocs.io/

Update validators from 0.12.2 to 0.12.4.

Changelog ### 0.12.4 ``` ^^^^^^^^^^^^^^^^^^^ - Use inspect.getfullargspec() in py3 (110, pull request courtesy riconnon) ``` ### 0.12.3 ``` ^^^^^^^^^^^^^^^^^^^ - Added `allow_temporal_ssn` parameter to fi_ssn validator (97, pull request courtesy quantus) - Remove py33 support ```
Links - PyPI: https://pypi.org/project/validators - Changelog: https://pyup.io/changelogs/validators/ - Repo: https://github.com/kvesteri/validators

Update astroid from 1.6.4 to 2.1.0.

Changelog ### 2.1.0 ``` ============================ Release Date: 2018-11-25 * ``threading.Lock.acquire`` has the ``timeout`` parameter now. Close PyCQA/pylint2457 * Pass parameters by keyword name when inferring sequences. Close PyCQA/pylint2526 * Correct line numbering for f-strings for complex embedded expressions When a f-string contained a complex expression, such as an attribute access, we weren't cloning all the subtree of the f-string expression for attaching the correct line number. This problem is coming from the builtin AST parser which gives for the f-string and for its underlying elements the line number 1, but this is causing all sorts of bugs and problems in pylint, which expects correct line numbering. Close PyCQA/pylint2449 * Add support for `argparse.Namespace` Close PyCQA/pylint2413 * `async` functions are now inferred as `AsyncGenerator` when inferring their call result. * Filter out ``Uninferable`` when inferring the call result result of a class with an uninferable ``__call__`` method. Close PyCQA/pylint2434 * Make compatible with AST changes in Python 3.8. * Subscript inference (e.g. "`a[i]`") now pays attention to multiple inferred values for value (e.g. "`a`") and slice (e.g. "`i`") Close 614 ``` ### 2.0.4 ``` ============================ Release Date: 2018-08-10 * Make sure that assign nodes can find ``yield`` statements in their values Close PyCQA/pylint2400 ``` ### 2.0.3 ``` ============================ Release Date: 2018-08-08 * The environment markers for PyPy were invalid. ``` ### 2.0.2 ``` ============================ Release Date: 2018-08-01 * Stop repeat inference attempt causing a RuntimeError in Python3.7 Close PyCQA/pylint2317 * infer_call_result can raise InferenceError so make sure to handle that for the call sites where it is used infer_call_result started recently to raise InferenceError for objects for which it could not find any returns. Previously it was silently raising a StopIteration, which was especially leaking when calling builtin methods. Since it is after all an inference method, it is expected that it could raise an InferenceError rather than returning nothing. Close PyCQA/pylint2350 ``` ### 2.0.1 ``` ============================ Release Date: 2018-07-19 * Released to clear an old wheel package on PyPI ``` ### 2.0 ``` ========================== Release Date: 2018-07-15 * String representation of nodes takes in account precedence and associativity rules of operators. * Fix loading files with `modutils.load_from_module` when the path that contains it in `sys.path` is a symlink and the file is contained in a symlinked folder. Close 583 * Reworking of the numpy brain dealing with numerictypes (use of inspect module to determine the class hierarchy of numpy.core.numerictypes module) Close PyCQA/pylint2140 * Added inference support for starred nodes in for loops Close 146 * Support unpacking for dicts in assignments Close 268 * Add support for inferring functools.partial Close 125 * Inference support for `dict.fromkeys` Close 110 * `int()` builtin is inferred as returning integers. Close 150 * `str()` builtin is inferred as returning strings. Close 148 * DescriptorBoundMethod has the correct number of arguments defined. * Improvement of the numpy numeric types definition. Close PyCQA/pylint1971 * Subclasses of *property* are now interpreted as properties Close PyCQA/pylint1601 * AsStringRegexpPredicate has been removed. Use transform predicates instead of it. * Switched to using typed_ast for getting access to type comments As a side effect of this change, some nodes gained a new `type_annotation` attribute, which, if the type comments were correctly parsed, should contain a node object with the corresponding objects from the type comment. * typing.X[...] and typing.NewType are inferred as classes instead of instances. * Module.__path__ is now a list It used to be a string containing the path, but it doesn't reflect the situation on Python, where it is actually a list. * Fix a bug with namespace package's __path__ attribute. Close 528 * Added brain tips for random.sample Part of PyCQA/pylint811 * Add brain tip for `issubclass` builtin Close 101. * Fix submodule imports from six Close PyCQA/pylint1640 * Fix missing __module__ and __qualname__ from class definition locals Close PYCQA/pylint1753 * Fix a crash when __annotations__ access a parent's __init__ that does not have arguments Close 473 * Fix multiple objects sharing the same InferenceContext.path causing uninferable results Close 483 * Fix improper modification of col_offset, lineno upon inference of builtin functions Close PyCQA/pylint1839 * Subprocess.Popen brain now knows of the args member Close PyCQA/pylint1860 * add move_to_end method to collections.OrderedDict brain Close PyCQA/pylint1872 * Include new hashlib classes added in python 3.6 * Fix RecursionError for augmented assign Close 437, 447, 313, PyCQA/pylint1642, PyCQA/pylint1805, PyCQA/pylint1854, PyCQA/pylint1452 * Add missing attrs special attribute Close PyCQA/pylint1884 * Inference now understands the 'isinstance' builtin Close 98 * Stop duplicate nodes with the same key values from appearing in dictionaries from dictionary unpacking. Close PyCQA/pylint1843 * Fix ``contextlib.contextmanager`` inference for nested context managers Close 1699 * Implement inference for len builtin Close 112 * Add qname method to Super object preventing potential errors in upstream pylint Close 533 * Stop astroid from getting stuck in an infinite loop if a function shares its name with its decorator Close 375 * Fix issue with inherited __call__ improperly inferencing self Close PyCQA/pylint2199 * Fix __call__ precedence for classes with custom metaclasses Close PyCQA/pylint2159 * Limit the maximum amount of interable result in an NodeNG.infer() call to 100 by default for performance issues with variables with large amounts of possible values. The max inferable value can be tuned by setting the `max_inferable_values` flag on astroid.MANAGER. ```
Links - PyPI: https://pypi.org/project/astroid - Changelog: https://pyup.io/changelogs/astroid/ - Repo: https://github.com/PyCQA/astroid

Update attrs from 18.1.0 to 18.2.0.

Changelog ### 18.2.0 ``` ------------------- Deprecations ^^^^^^^^^^^^ - Comparing subclasses using ``<``, ``>``, ``<=``, and ``>=`` is now deprecated. The docs always claimed that instances are only compared if the types are identical, so this is a first step to conform to the docs. Equality operators (``==`` and ``!=``) were always strict in this regard. `394 <https://github.com/python-attrs/attrs/issues/394>`_ Changes ^^^^^^^ - ``attrs`` now ships its own `PEP 484 <https://www.python.org/dev/peps/pep-0484/>`_ type hints. Together with `mypy <http://mypy-lang.org>`_'s ``attrs`` plugin, you've got all you need for writing statically typed code in both Python 2 and 3! At that occasion, we've also added `narrative docs <https://www.attrs.org/en/stable/types.html>`_ about type annotations in ``attrs``. `238 <https://github.com/python-attrs/attrs/issues/238>`_ - Added *kw_only* arguments to ``attr.ib`` and ``attr.s``, and a corresponding *kw_only* attribute to ``attr.Attribute``. This change makes it possible to have a generated ``__init__`` with keyword-only arguments on Python 3, relaxing the required ordering of default and non-default valued attributes. `281 <https://github.com/python-attrs/attrs/issues/281>`_, `411 <https://github.com/python-attrs/attrs/issues/411>`_ - The test suite now runs with ``hypothesis.HealthCheck.too_slow`` disabled to prevent CI breakage on slower computers. `364 <https://github.com/python-attrs/attrs/issues/364>`_, `396 <https://github.com/python-attrs/attrs/issues/396>`_ - ``attr.validators.in_()`` now raises a ``ValueError`` with a useful message even if the options are a string and the value is not a string. `383 <https://github.com/python-attrs/attrs/issues/383>`_ - ``attr.asdict()`` now properly handles deeply nested lists and dictionaries. `395 <https://github.com/python-attrs/attrs/issues/395>`_ - Added ``attr.converters.default_if_none()`` that allows to replace ``None`` values in attributes. For example ``attr.ib(converter=default_if_none(""))`` replaces ``None`` by empty strings. `400 <https://github.com/python-attrs/attrs/issues/400>`_, `414 <https://github.com/python-attrs/attrs/issues/414>`_ - Fixed a reference leak where the original class would remain live after being replaced when ``slots=True`` is set. `407 <https://github.com/python-attrs/attrs/issues/407>`_ - Slotted classes can now be made weakly referenceable by passing ``attr.s(weakref_slot=True)``. `420 <https://github.com/python-attrs/attrs/issues/420>`_ - Added *cache_hash* option to ``attr.s`` which causes the hash code to be computed once and stored on the object. `425 <https://github.com/python-attrs/attrs/issues/425>`_ - Attributes can be named ``property`` and ``itemgetter`` now. `430 <https://github.com/python-attrs/attrs/issues/430>`_ - It is now possible to override a base class' class variable using only class annotations. `431 <https://github.com/python-attrs/attrs/issues/431>`_ ---- ```
Links - PyPI: https://pypi.org/project/attrs - Changelog: https://pyup.io/changelogs/attrs/ - Homepage: https://www.attrs.org/

Update autopep8 from 1.3.5 to 1.4.3.

Changelog ### 1.4.2 ``` * fix bugs * 441 : related code is W503 * 443 : related code is W503 ``` ### 1.4.1 ``` * add W504 fixed method (423) * add E402 fixed method (434) * new feature: reading from `.flake8` and `$HOME/.pycodestyle` file that using as autopep8's configuration, and add [configuration section](https://github.com/hhatto/autopep8configuration) into README () * add `--exit-code` command line option (437) * case of if `--exit-code` option is False. this is default * return 1 when error occured * otherwise return 0 (command successful) * case of if `--exit-code` option is True * return 1 when error occured * return 2 when exists changes in files (command successful) * otherwise return 0 (command successful) * This option is valid for any operating mode such as `--diff`, `--in-place`, non option etc * fix bugs * 403 : related code is W605 * 411 : related code is W503 ``` ### 1.4 ``` * new feature: add W605 fixed method * new feature: add E252 fixed method (Thanks to patch by gmbnomis) * change: W690 (only use autopep8) is DEFAULT_IGNORE. * fix bugs * 415, 399, 410, 392 * 386 (Thanks to patch by Hnasar) ```
Links - PyPI: https://pypi.org/project/autopep8 - Changelog: https://pyup.io/changelogs/autopep8/ - Repo: https://github.com/hhatto/autopep8

Update coverage from 4.5.1 to 4.5.2.

The bot wasn't able to find a changelog for this release. Got an idea?

Links - PyPI: https://pypi.org/project/coverage - Changelog: https://pyup.io/changelogs/coverage/ - Repo: https://bitbucket.org/ned/coveragepy

Update more-itertools from 4.2.0 to 5.0.0.

Changelog ### 5.0.0 ``` See PR 252 for notes. ``` ### 4.3.1 ``` This is [version 4.3.0](https://github.com/erikrose/more-itertools/releases/tag/4.3.0) plus PR 226 . There is no corresponding PyPI release; this is just to fix the docs on RTD. ```
Links - PyPI: https://pypi.org/project/more-itertools - Changelog: https://pyup.io/changelogs/more-itertools/ - Repo: https://github.com/erikrose/more-itertools - Docs: https://pythonhosted.org/more-itertools/

Update pluggy from 0.6.0 to 0.8.1.

Changelog ### 0.8.1 ``` ========================= Trivial/Internal Changes ------------------------ - `166 <https://github.com/pytest-dev/pluggy/issues/166>`_: Add ``stacklevel=2`` to implprefix warning so that the reported location of warning is the caller of PluginManager. ``` ### 0.8.0 ``` ========================= Features -------- - `177 <https://github.com/pytest-dev/pluggy/issues/177>`_: Add ``get_hookimpls()`` method to hook callers. Trivial/Internal Changes ------------------------ - `165 <https://github.com/pytest-dev/pluggy/issues/165>`_: Add changelog in long package description and documentation. - `172 <https://github.com/pytest-dev/pluggy/issues/172>`_: Add a test exemplifying the opt-in nature of spec defined args. - `57 <https://github.com/pytest-dev/pluggy/issues/57>`_: Encapsulate hook specifications in a type for easier introspection. ========= Changelog ========= .. towncrier release notes start ``` ### 0.7.1 ``` ========================= Deprecations and Removals ------------------------- - `116 <https://github.com/pytest-dev/pluggy/issues/116>`_: Deprecate the ``implprefix`` kwarg to ``PluginManager`` and instead expect users to start using explicit ``HookimplMarker`` everywhere. Features -------- - `122 <https://github.com/pytest-dev/pluggy/issues/122>`_: Add ``.plugin`` member to ``PluginValidationError`` to access failing plugin during post-mortem. - `138 <https://github.com/pytest-dev/pluggy/issues/138>`_: Add per implementation warnings support for hookspecs allowing for both deprecation and future warnings of legacy and (future) experimental hooks respectively. Bug Fixes --------- - `110 <https://github.com/pytest-dev/pluggy/issues/110>`_: Fix a bug where ``_HookCaller.call_historic()`` would call the ``proc`` arg even when the default is ``None`` resulting in a ``TypeError``. - `160 <https://github.com/pytest-dev/pluggy/issues/160>`_: Fix problem when handling ``VersionConflict`` errors when loading setuptools plugins. Improved Documentation ---------------------- - `123 <https://github.com/pytest-dev/pluggy/issues/123>`_: Document how exceptions are handled and how the hook call loop terminates immediately on the first error which is then delivered to any surrounding wrappers. - `136 <https://github.com/pytest-dev/pluggy/issues/136>`_: Docs rework including a much better introduction and comprehensive example set for new users. A big thanks goes out to obestwalter for the great work! Trivial/Internal Changes ------------------------ - `117 <https://github.com/pytest-dev/pluggy/issues/117>`_: Break up the main monolithic package modules into separate modules by concern - `131 <https://github.com/pytest-dev/pluggy/issues/131>`_: Automate ``setuptools`` wheels building and PyPi upload using TravisCI. - `153 <https://github.com/pytest-dev/pluggy/issues/153>`_: Reorganize tests more appropriately by modules relating to each internal component/feature. This is in an effort to avoid (future) duplication and better separation of concerns in the test set. - `156 <https://github.com/pytest-dev/pluggy/issues/156>`_: Add ``HookImpl.__repr__()`` for better debugging. - `66 <https://github.com/pytest-dev/pluggy/issues/66>`_: Start using ``towncrier`` and a custom ``tox`` environment to prepare releases! ``` ### 0.7.0 ``` ========================= * `160 <https://github.com/pytest-dev/pluggy/issues/160>`_: We discovered a deployment issue so this version was never released to PyPI, only the tag exists. ```
Links - PyPI: https://pypi.org/project/pluggy - Changelog: https://pyup.io/changelogs/pluggy/ - Repo: https://github.com/pytest-dev/pluggy

Update py from 1.5.3 to 1.7.0.

Changelog ### 1.7.0 ``` ================== - fix 174: use ``shutil.get_terminal_size()`` in Python 3.3+ to determine the size of the terminal, which produces more accurate results than the previous method. - fix pytest-dev/pytest2042: introduce new ``PY_IGNORE_IMPORTMISMATCH`` environment variable that suppresses ``ImportMismatchError`` exceptions when set to ``1``. ``` ### 1.6.0 ``` ================== - add ``TerminalWriter.width_of_current_line`` (i18n version of ``TerminalWriter.chars_on_current_line``), a read-only property that tracks how wide the current line is, attempting to take into account international characters in the calculation. ``` ### 1.5.4 ``` ================== - fix pytest-dev/pytest3451: don't make assumptions about fs case sensitivity in ``make_numbered_dir``. ```
Links - PyPI: https://pypi.org/project/py - Changelog: https://pyup.io/changelogs/py/ - Docs: http://py.readthedocs.io/

Update pycodestyle from 2.4.0 to 2.5.0.

Changelog ### 2.5.0 ``` ------------------ New checks: * E117: Over-indented code blocks * W505: Maximum doc-string length only when configured with --max-doc-length Changes: * Remove support for EOL Python 2.6 and 3.3. PR 720. * Add E117 error for over-indented code blocks. * Allow W605 to be silenced by ` noqa` and fix the position reported by W605 * Allow users to omit blank lines around one-liner definitions of classes and functions * Include the function return annotation (``->``) as requiring surrounding whitespace only on Python 3 * Verify that only names can follow ``await``. Previously we allowed numbers and strings. * Add support for Python 3.7 * Fix detection of annotated argument defaults for E252 * Cprrect the position reported by W504 ```
Links - PyPI: https://pypi.org/project/pycodestyle - Changelog: https://pyup.io/changelogs/pycodestyle/ - Docs: https://pycodestyle.readthedocs.io/

Update pylint from 1.9.1 to 2.2.2.

Changelog ### 2.2.2 ``` =========================== Release date: 2018-11-28 * Change the ``logging-format-style`` to use name identifier instead of their corresponding Python identifiers This is to prevent users having to think about escaping the default value for ``logging-format-style`` in the generated config file. Also our config parsing utilities don't quite support escaped values when it comes to ``choices`` detection, so this would have needed various hacks around that. Closes 2614 ``` ### 2.2.1 ``` =========================== Release date: 2018-11-27 * Fix a crash caused by `implicit-str-concat-in-sequence` and multi-bytes characters. Closes 2610 ``` ### 2.2 ``` ========================= Release date: 2018-11-25 * Consider ``range()`` objects for ``undefined-loop-variable`` leaking from iteration. Close 2533 * ``deprecated-method`` can use the attribute name for identifying a deprecated method Previously we were using the fully qualified name, which we still do, but the fully qualified name for some ``unittest`` deprecated aliases leads to a generic deprecation function. Instead on relying on that, we now also rely on the attribute name, which should solve some false positives. Close 1653 Close 1946 * Fix compatibility with changes to stdlib tokenizer. * ``pylint`` is less eager to consume the whole line for pragmas Close 2485 * Obtain the correct number of CPUs for virtualized or containerized environments. Close 2519 * Change ``unbalanced-tuple-unpacking`` back to a warning. It used to be a warning until a couple of years ago, after it was promoted to an error. But the check might be suggesting the wrong thing in some cases, for instance when checking against ``sys.argv`` which cannot be known at static analysis time. Given it might rely on potential unknown data, it's best to have it as a warning. Close 2522 * Remove ``enumerate`` usage suggestion when defining ``__iter__`` (C0200) Close 2477 * Emit ``too-many-starred-assignment`` only when the number of Starred nodes is per assignment elements Close 2513 * `try-except-raise` checker now handles multilevel inheritance hirerachy for exceptions correctly. Close 2484 * Add a new check, ``simplifiable-if-expression`` for expressions like ``True if cond else False``. Close 2487 * ``too-few-public-methods`` is not reported for ``typing.NamedTuple`` Close 2459 * too-few-public-methods`` is not reported for dataclasses created with options. Close 2488 * Remove wrong modules from 'bad-python3-import'. Close 2453 * The ``json`` reporter prints an empty list when no messages are emitted Close 2446 * Add a new check, ``duplicate-string-formatting-argument`` This new check is emitted whenever a duplicate string formatting argument is found. Close 497 * ``assignment-from-no-return`` is not emitted for coroutines. Close 1715 * Report format string type mismatches. * ``consider-using-ternary`` and ``simplified-boolean-expression`` no longer emit for sequence based checks Close 2473 * Handle ``AstroidSyntaxError`` when trying to import a module. Close 2313 * Allow ``__module__`` to be redefined at a class level. Close 2451 * ``pylint`` used to emit a ``unused-variable`` error if unused import was found in the function. Now instead of ``unused-variable``, ``unused-import`` is emitted. Close 2421 * Handle asyncio.coroutine when looking for ``not-an-iterable`` check. Close 996 * The ``locally-enabled`` check is gone. Close 2442 * Infer decorated methods when looking for method-hidden Close 2369 * Pick the latest value from the inferred values when looking for ``raising-non-exception`` Close 2431 * Extend the TYPE_CHECKING guard to TYPE_CHECKING name as well, not just the attribute Close 2411 * Ignore import x.y.z as z cases for checker `useless-import-alias`. Close 2309 * Fix false positive ``undefined-variable`` and ``used-before-assignment`` with nonlocal keyword usage. Close 2049 * Stop ``protected-access`` exception for missing class attributes * Don't emit `assignment-from-no-return` for decorated function nodes Close 2385 * `unnecessary-pass` is now also emitted when a function or class contains only docstring and pass statement. In Python, stubbed functions often have a body that contains just a single `pass` statement, indicating that the function doesn't do anything. However, a stubbed function can also have just a docstring, and function with a docstring and no body also does nothing. Close 2208 * ``duplicate-argument-name`` is emitted for more than one duplicate argument per function Close 1712 * Allow double indentation levels for more distinguishable indentations Close 741 * Consider tuples in exception handler for ``try-except-raise``. Close 2389 * Fix astroid.ClassDef check in checkers.utils.is_subclass_of * Fix wildcard imports being ignored by the import checker * Fix external/internal distinction being broken in the import graph * Fix wildcard import check not skipping `__init__.py` Close 2430 * Add new option to logging checker, ``logging_format_style`` * Fix --ignore-imports to understand multi-line imports Close 1422 Close 2019 * Add a new check 'implicit-str-concat-in-sequence' to spot string concatenation inside lists, sets & tuples. * ``literal-comparison`` is now emitted for 0 and 1 literals. ``` ### 2.1.1 ``` =========================== Release date: 2018-08-07 * fix pylint crash due to ``misplaced-format-function`` not correctly handling class attribute. Close 2384 * Do not emit \*-builtin for Python 3 builtin checks when the builtin is used inside a try-except Close PyCQA/pylint2228 * ``simplifiable-if-statement`` not emitted when dealing with subscripts ``` ### 2.1 ``` ========================= Release date: 2018-08-01 * `trailing-comma-tuple` gets emitted for ``yield`` statements as well. Close 2363 * Get only the arguments of the scope function for `redefined-argument-from-local` Close 2364 * Add a check `misplaced-format-function` which is emitted if format function is used on non str object. Close 2200 * `chain.from_iterable` no longer emits `dict-{}-not-iterating` when dealing with dict values and keys * Demote the `try-except-raise` message from an error to a warning (E0705 -> W0706) Close 2323 * Correctly handle the new name of the Python implementation of the `abc` module. Close PyCQA/astroid2288 * Modules with `__getattr__` are exempted by default from `no-member` There's no easy way to figure out if a module has a particular member when the said module uses `__getattr__`, which is a new addition to Python 3.7. Instead we assume the safe thing to do, in the same way we do for classes, and skip those modules from checking. Close 2331 * Fix a false positive `invalid name` message when method or attribute name is longer then 30 characters. Close 2047 * Include the type of the next branch in `no-else-return` Close 2295 * Fix inconsistent behaviour for bad-continuation on first line of file Close 2281 * Fix not being able to disable certain messages on the last line through the global disable option Close 2278 * Don't emit `useless-return` when we have a single statement that is the return itself We still want to be explicit when a function is supposed to return an optional value; even though `pass` could still work, it's not explicit enough and the function might look like it's missing an implementation. Close 2300 * Fix false-positive undefined-variable for self referential class name in lamdbas Close 704 * Don't crash when `pylint` is unable to infer the value of an argument to `next()` Close 2316 * Don't emit `not-an-iterable` when dealing with async iterators. But do emit it when using the usual iteration protocol against async iterators. Close 2311 * Can specify a default docstring type for when the check cannot guess the type Close 1169 ``` ### 2.0 ``` ========================= Release date: 2018-07-15 * `try-except-raise` should not be emitted if there are any parent exception class handlers. Close 2284 * `trailing-comma-tuple` can be emitted for `return` statements as well. Close 2269 * Fix a false positive ``inconsistent-return-statements`` message when exception is raised inside an else statement. Close 1782 * `ImportFrom` nodes correctly use the full name for the import sorting checks. Close 2181 * [].extend and similar builtin operations don't emit `dict-*-not-iterating` with the Python 3 porting checker Close 2187 * Add a check `consider-using-dict-comprehension` which is emitted if for dict initialization the old style with list comprehensions is used. * Add a check `consider-using-set-comprehension` which is emitted if for set initialization the old style with list comprehensions is used. * `logging-not-lazy` is emitted whenever pylint infers that a string is built with addition Close 2193 * Add a check `chained-comparison` which is emitted if a boolean operation can be simplified by chaining some of its operations. e.g "a < b and b < c", can be simplified as "a < b < c". Close 2032 * Add a check `consider-using-in` for comparisons of a variable against multiple values with "==" and "or"s instead of checking if the variable is contained "in" a tuple of those values. * `in` is considered iterating context for some of the Python 3 porting checkers Close 2186 * Add `--ignore-none` flag to control if pylint should warn about `no-member` where the owner is None * Fix a false positive related to `too-many-arguments` and bounded `__get__` methods Close 2172 * `mcs` as the first parameter of metaclass's `__new__` method was replaced by `cls` Close 2028 * `assignment-from-no-return` considers methods as well. Close 2081 * Support typing.TYPE_CHECKING for *unused-import* errors Close 1948 * Inferred classes at a function level no longer emit `invalid-name` when they don't respect the variable regular expression Close 1049 * Added basic support for postponed evaluation of function annotations. Close 2069 * Fix a bug with `missing-kwoa` and variadics parameters Close 1111 * `simplifiable-if-statement` takes in account only when assigning to same targets Close 1984 * Make ``len-as-condition`` test more cases, such as ``len() < 1`` or ``len <= 0`` * Fix false-positive ``line-too-long`` message emission for commented line at the end of a module Close 1950 * Fix false-positive ``bad-continuation`` for with statements Close 461 * Don't warn about `stop-iteration-return` when using `next()` over `itertools.count` Close 2158 * Add a check `consider-using-get` for unidiomatic usage of value/default-retrieval for a key from a dictionary Close 2076 * invalid-slice-index is not emitted when the slice is used as index for a complex object. We only use a handful of known objects (list, set and friends) to figure out if we should emit invalid-slice-index when the slice is used to subscript an object. * Don't emit `unused-import` anymore for typing imports used in type comments. * Add a new check 'useless-import-alias'. Close 2052 * Add `comparison-with-callable` to warn for comparison with bare callable, without calling it. Close 2082 * Don't warn for ``missing-type-doc`` and/or ``missing-return-type-doc``, if type annotations exist on the function signature for a parameter and/or return type. Close 2083 * Add `--exit-zero` option for continuous integration scripts to more easily call Pylint in environments that abort when a program returns a non-zero (error) status code. Close 2042 * Warn if the first argument of an instance/ class method gets assigned Close 977 * New check `comparison-with-itself` to check comparison between same value. Close 2051 * Add a new warning, 'logging-fstring-interpolation', emitted when f-string is used within logging function calls. Close 1998 * Don't show 'useless-super-delegation' if the subclass method has different type annotations. Close 1923 * Add `unhashable-dict-key` check. Closes 586 * Don't warn that a global variable is unused if it is defined by an import Close 1453 * Skip wildcard import check for `__init__.py`. Close 2026 * The Python 3 porting mode can now run with Python 3 as well. * `too-few-public-methods` is not emitted for dataclasses. Close 1793 * New verbose mode option, enabled with `--verbose` command line flag, to display of extra non-checker-related output. It is disabled by default. Close 1863 * `undefined-loop-variable` takes in consideration non-empty iterred objects before emitting Close 2039 * Add support for numpydoc optional return value names. Close 2030 * `singleton-comparison` accounts for negative checks Close 2037 * Add a check `consider-using-in` for comparisons of a variable against multiple values with "==" and "or"s instead of checking if the variable is contained "in" a tuple of those values. Close 1977 * defaultdict and subclasses of dict are now handled for dict-iter-* checks Close 2005 * `logging-format-interpolation` also emits when f-strings are used instead of % syntax. Close 1788 * Don't trigger misplaced-bare-raise when the raise is in a finally clause Close 1924 * Add a new check, `possibly-unused-variable`. This is similar to `unused-variable`, the only difference is that it is emitted when we detect a locals() call in the scope of the unused variable. The `locals()` call could potentially use the said variable, by consuming all values that are present up to the point of the call. This new check allows to disable this error when the user intentionally uses `locals()` to consume everything. Close 1909. * `no-else-return` accounts for multiple cases The check was a bit overrestrictive because we were checking for return nodes in the .orelse node. At that point though the if statement can be refactored to not have the orelse. This improves the detection of other cases, for instance it now detects TryExcept nodes that are part of the .else branch. Close 1852 * Added two new checks, `invalid-envvar-value` and `invalid-envvar-default`. The former is trigger whenever pylint detects that environment variable manipulation functions uses a different type than strings, while the latter is emitted whenever the said functions are using a default variable of different type than expected. * Add a check `consider-using-join` for concatenation of strings using str.join(sequence) Close 1952 * Add a check `consider-swap-variables` for swapping variables with tuple unpacking Close 1922 * Add new checker `try-except-raise` that warns the user if an except handler block has a ``raise`` statement as its first operator. The warning is shown when there is a bare raise statement, effectively re-raising the exception that was caught or the type of the exception being raised is the same as the one being handled. * Don't crash on invalid strings when checking for `logging-format-interpolation` Close 1944 * Exempt `__doc__` from triggering a `redefined-builtin` `__doc__` can be used to specify a docstring for a module without passing it as a first-statement string. * Fix false positive bad-whitespace from function arguments with default values and annotations Close 1831 * Fix stop-iteration-return false positive when next builtin has a default value in a generator Close 1830 * Fix emission of false positive ``no-member`` message for class with "private" attributes whose name is mangled. Close 1643 * Fixed a crash which occurred when `Uninferable` wasn't properly handled in `stop-iteration-return` Close 1779 * Use the proper node to get the name for redefined functions (1792) Close 1774 * Don't crash when encountering bare raises while checking inconsistent returns Close 1773 * Fix a false positive ``inconsistent-return-statements`` message when if statement is inside try/except. Close 1770 * Fix a false positive ``inconsistent-return-statements`` message when while loop are used. Close 1772 * Correct column number for whitespace conventions. Previously the column was stuck at 0 Close 1649 * Fix ``unused-argument`` false positives with overshadowed variable in dictionary comprehension. Close 1731 * Fix false positive ``inconsistent-return-statements`` message when never returning functions are used (i.e sys.exit for example). Close 1771 * Fix error when checking if function is exception, as in ``bad-exception-context``. * Fix false positive ``inconsistent-return-statements`` message when a function is defined under an if statement. Close 1794 * New ``useless-return`` message when function or method ends with a "return" or "return None" statement and this is the only return statement in the body. * Fix false positive ``inconsistent-return-statements`` message by avoiding useless exception inference if the exception is not handled. Close 1794 (second part) * Fix bad thread instantiation check when target function is provided in args. Close 1840 * Fixed false positive when a numpy Attributes section follows a Parameters section Close 1867 * Fix incorrect file path when file absolute path contains multiple ``path_strip_prefix`` strings. Close 1120 * Fix false positive undefined-variable for lambda argument in class definitions Close 1824 * Add of a new checker that warns the user if some messages are enabled or disabled by id instead of symbol. Close 1599 * Suppress false-positive ``not-callable`` messages from certain staticmethod descriptors Close 1699 * Fix indentation handling with tabs Close 1148 * Fix false-positive ``bad-continuation`` error Close 638 * Fix false positive unused-variable in lambda default arguments Close 1921 Close 1552 Close 1099 Close 210 * Updated the default report format to include paths that can be clicked on in some terminals (e.g. iTerm). * Fix inline def behavior with ``too-many-statements`` checker Close 1978 * Fix `KeyError` raised when using docparams and NotImplementedError is documented. Close 2102 * Fix 'method-hidden' raised when assigning to a property or data descriptor. * Fix emitting ``useless-super-delegation`` when changing the default value of keyword arguments. Close 2022 * Expand ignored-argument-names include starred arguments and keyword arguments Close 2214 * Fix false-postive undefined-variable in nested lambda Close 760 * Fix false-positive ``bad-whitespace`` message for typing annoatations with ellipses in them Close 1992 ```
Links - PyPI: https://pypi.org/project/pylint - Changelog: https://pyup.io/changelogs/pylint/ - Repo: https://github.com/PyCQA/pylint

Update pytest-cov from 2.5.1 to 2.6.1.

Changelog ### 2.6.1 ``` ------------------ * Added support for Pytest 4.1. Contributed by Daniel Hahler and Семён Марьясин in `253 <https://github.com/pytest-dev/pytest-cov/pull/253>`_ and `230 <https://github.com/pytest-dev/pytest-cov/pull/230>`_. * Various test and docs fixes. Contributed by Daniel Hahler in `224 <https://github.com/pytest-dev/pytest-cov/pull/224>`_ and `223 <https://github.com/pytest-dev/pytest-cov/pull/223>`_. * Fixed the "Module already imported" issue (`211 <https://github.com/pytest-dev/pytest-cov/issues/211>`_). Contributed by Daniel Hahler in `228 <https://github.com/pytest-dev/pytest-cov/pull/228>`_. ``` ### 2.6.0 ``` ------------------ * Dropped support for Python < 3.4, Pytest < 3.5 and Coverage < 4.4. * Fixed some documentation formatting. Contributed by Jean Jordaan and Julian. * Added an example with ``addopts`` in documentation. Contributed by Samuel Giffard in `195 <https://github.com/pytest-dev/pytest-cov/pull/195>`_. * Fixed ``TypeError: 'NoneType' object is not iterable`` in certain xdist configurations. Contributed by Jeremy Bowman in `213 <https://github.com/pytest-dev/pytest-cov/pull/213>`_. * Added a ``no_cover`` marker and fixture. Fixes `78 <https://github.com/pytest-dev/pytest-cov/issues/78>`_. * Fixed broken ``no_cover`` check when running doctests. Contributed by Terence Honles in `200 <https://github.com/pytest-dev/pytest-cov/pull/200>`_. * Fixed various issues with path normalization in reports (when combining coverage data from parallel mode). Fixes `130 <https://github.com/pytest-dev/pytest-cov/issues/161>`_. Contributed by Ryan Hiebert & Ionel Cristian Mărieș in `178 <https://github.com/pytest-dev/pytest-cov/pull/178>`_. * Report generation failures don't raise exceptions anymore. A warning will be logged instead. Fixes `161 <https://github.com/pytest-dev/pytest-cov/issues/161>`_. * Fixed multiprocessing issue on Windows (empty env vars are not passed). Fixes `165 <https://github.com/pytest-dev/pytest-cov/issues/165>`_. ```
Links - PyPI: https://pypi.org/project/pytest-cov - Changelog: https://pyup.io/changelogs/pytest-cov/ - Repo: https://github.com/pytest-dev/pytest-cov

Update pytest from 3.6.1 to 4.2.0.

Changelog ### 4.2.0 ``` ========================= Features -------- - `3094 <https://github.com/pytest-dev/pytest/issues/3094>`_: `Class xunit-style <https://docs.pytest.org/en/latest/xunit_setup.html>`__ functions and methods now obey the scope of *autouse* fixtures. This fixes a number of surprising issues like ``setup_method`` being called before session-scoped autouse fixtures (see `517 <https://github.com/pytest-dev/pytest/issues/517>`__ for an example). - `4627 <https://github.com/pytest-dev/pytest/issues/4627>`_: Display a message at the end of the test session when running under Python 2.7 and 3.4 that pytest 5.0 will no longer support those Python versions. - `4660 <https://github.com/pytest-dev/pytest/issues/4660>`_: The number of *selected* tests now are also displayed when the ``-k`` or ``-m`` flags are used. - `4688 <https://github.com/pytest-dev/pytest/issues/4688>`_: ``pytest_report_teststatus`` hook now can also receive a ``config`` parameter. - `4691 <https://github.com/pytest-dev/pytest/issues/4691>`_: ``pytest_terminal_summary`` hook now can also receive a ``config`` parameter. Bug Fixes --------- - `3547 <https://github.com/pytest-dev/pytest/issues/3547>`_: ``--junitxml`` can emit XML compatible with Jenkins xUnit. ``junit_family`` INI option accepts ``legacy|xunit1``, which produces old style output, and ``xunit2`` that conforms more strictly to https://github.com/jenkinsci/xunit-plugin/blob/xunit-2.3.2/src/main/resources/org/jenkinsci/plugins/xunit/types/model/xsd/junit-10.xsd - `4280 <https://github.com/pytest-dev/pytest/issues/4280>`_: Improve quitting from pdb, especially with ``--trace``. Using ``q[quit]`` after ``pdb.set_trace()`` will quit pytest also. - `4402 <https://github.com/pytest-dev/pytest/issues/4402>`_: Warning summary now groups warnings by message instead of by test id. This makes the output more compact and better conveys the general idea of how much code is actually generating warnings, instead of how many tests call that code. - `4536 <https://github.com/pytest-dev/pytest/issues/4536>`_: ``monkeypatch.delattr`` handles class descriptors like ``staticmethod``/``classmethod``. - `4649 <https://github.com/pytest-dev/pytest/issues/4649>`_: Restore marks being considered keywords for keyword expressions. - `4653 <https://github.com/pytest-dev/pytest/issues/4653>`_: ``tmp_path`` fixture and other related ones provides resolved path (a.k.a real path) - `4667 <https://github.com/pytest-dev/pytest/issues/4667>`_: ``pytest_terminal_summary`` uses result from ``pytest_report_teststatus`` hook, rather than hardcoded strings. - `4669 <https://github.com/pytest-dev/pytest/issues/4669>`_: Correctly handle ``unittest.SkipTest`` exception containing non-ascii characters on Python 2. - `4680 <https://github.com/pytest-dev/pytest/issues/4680>`_: Ensure the ``tmpdir`` and the ``tmp_path`` fixtures are the same folder. - `4681 <https://github.com/pytest-dev/pytest/issues/4681>`_: Ensure ``tmp_path`` is always a real path. Trivial/Internal Changes ------------------------ - `4643 <https://github.com/pytest-dev/pytest/issues/4643>`_: Use ``a.item()`` instead of the deprecated ``np.asscalar(a)`` in ``pytest.approx``. ``np.asscalar`` has been `deprecated <https://github.com/numpy/numpy/blob/master/doc/release/1.16.0-notes.rstnew-deprecations>`__ in ``numpy 1.16.``. - `4657 <https://github.com/pytest-dev/pytest/issues/4657>`_: Copy saferepr from pylib ``` ### 4.1.1 ``` ========================= Bug Fixes --------- - `2256 <https://github.com/pytest-dev/pytest/issues/2256>`_: Show full repr with ``assert a==b`` and ``-vv``. - `3456 <https://github.com/pytest-dev/pytest/issues/3456>`_: Extend Doctest-modules to ignore mock objects. - `4617 <https://github.com/pytest-dev/pytest/issues/4617>`_: Fixed ``pytest.warns`` bug when context manager is reused (e.g. multiple parametrization). - `4631 <https://github.com/pytest-dev/pytest/issues/4631>`_: Don't rewrite assertion when ``__getattr__`` is broken Improved Documentation ---------------------- - `3375 <https://github.com/pytest-dev/pytest/issues/3375>`_: Document that using ``setup.cfg`` may crash other tools or cause hard to track down problems because it uses a different parser than ``pytest.ini`` or ``tox.ini`` files. Trivial/Internal Changes ------------------------ - `4602 <https://github.com/pytest-dev/pytest/issues/4602>`_: Uninstall ``hypothesis`` in regen tox env. ``` ### 4.1.0 ``` ========================= Removals -------- - `2169 <https://github.com/pytest-dev/pytest/issues/2169>`_: ``pytest.mark.parametrize``: in previous versions, errors raised by id functions were suppressed and changed into warnings. Now the exceptions are propagated, along with a pytest message informing the node, parameter value and index where the exception occurred. - `3078 <https://github.com/pytest-dev/pytest/issues/3078>`_: Remove legacy internal warnings system: ``config.warn``, ``Node.warn``. The ``pytest_logwarning`` now issues a warning when implemented. See our `docs <https://docs.pytest.org/en/latest/deprecations.htmlconfig-warn-and-node-warn>`__ on information on how to update your code. - `3079 <https://github.com/pytest-dev/pytest/issues/3079>`_: Removed support for yield tests - they are fundamentally broken because they don't support fixtures properly since collection and test execution were separated. See our `docs <https://docs.pytest.org/en/latest/deprecations.htmlyield-tests>`__ on information on how to update your code. - `3082 <https://github.com/pytest-dev/pytest/issues/3082>`_: Removed support for applying marks directly to values in ``pytest.mark.parametrize``. Use ``pytest.param`` instead. See our `docs <https://docs.pytest.org/en/latest/deprecations.htmlmarks-in-pytest-mark-parametrize>`__ on information on how to update your code. - `3083 <https://github.com/pytest-dev/pytest/issues/3083>`_: Removed ``Metafunc.addcall``. This was the predecessor mechanism to ``pytest.mark.parametrize``. See our `docs <https://docs.pytest.org/en/latest/deprecations.htmlmetafunc-addcall>`__ on information on how to update your code. - `3085 <https://github.com/pytest-dev/pytest/issues/3085>`_: Removed support for passing strings to ``pytest.main``. Now, always pass a list of strings instead. See our `docs <https://docs.pytest.org/en/latest/deprecations.htmlpassing-command-line-string-to-pytest-main>`__ on information on how to update your code. - `3086 <https://github.com/pytest-dev/pytest/issues/3086>`_: ``[pytest]`` section in **setup.cfg** files is not longer supported, use ``[tool:pytest]`` instead. ``setup.cfg`` files are meant for use with ``distutils``, and a section named ``pytest`` has notoriously been a source of conflicts and bugs. Note that for **pytest.ini** and **tox.ini** files the section remains ``[pytest]``. - `3616 <https://github.com/pytest-dev/pytest/issues/3616>`_: Removed the deprecated compat properties for ``node.Class/Function/Module`` - use ``pytest.Class/Function/Module`` now. See our `docs <https://docs.pytest.org/en/latest/deprecations.htmlinternal-classes-accessed-through-node>`__ on information on how to update your code. - `4421 <https://github.com/pytest-dev/pytest/issues/4421>`_: Removed the implementation of the ``pytest_namespace`` hook. See our `docs <https://docs.pytest.org/en/latest/deprecations.htmlpytest-namespace>`__ on information on how to update your code. - `4489 <https://github.com/pytest-dev/pytest/issues/4489>`_: Removed ``request.cached_setup``. This was the predecessor mechanism to modern fixtures. See our `docs <https://docs.pytest.org/en/latest/deprecations.htmlcached-setup>`__ on information on how to update your code. - `4535 <https://github.com/pytest-dev/pytest/issues/4535>`_: Removed the deprecated ``PyCollector.makeitem`` method. This method was made public by mistake a long time ago. - `4543 <https://github.com/pytest-dev/pytest/issues/4543>`_: Removed support to define fixtures using the ``pytest_funcarg__`` prefix. Use the ``pytest.fixture`` decorator instead. See our `docs <https://docs.pytest.org/en/latest/deprecations.htmlpytest-funcarg-prefix>`__ on information on how to update your code. - `4545 <https://github.com/pytest-dev/pytest/issues/4545>`_: Calling fixtures directly is now always an error instead of a warning. See our `docs <https://docs.pytest.org/en/latest/deprecations.htmlcalling-fixtures-directly>`__ on information on how to update your code. - `4546 <https://github.com/pytest-dev/pytest/issues/4546>`_: Remove ``Node.get_marker(name)`` the return value was not usable for more than a existence check. Use ``Node.get_closest_marker(name)`` as a replacement. - `4547 <https://github.com/pytest-dev/pytest/issues/4547>`_: The deprecated ``record_xml_property`` fixture has been removed, use the more generic ``record_property`` instead. See our `docs <https://docs.pytest.org/en/latest/deprecations.htmlrecord-xml-property>`__ for more information. - `4548 <https://github.com/pytest-dev/pytest/issues/4548>`_: An error is now raised if the ``pytest_plugins`` variable is defined in a non-top-level ``conftest.py`` file (i.e., not residing in the ``rootdir``). See our `docs <https://docs.pytest.org/en/latest/deprecations.htmlpytest-plugins-in-non-top-level-conftest-files>`__ for more information. - `891 <https://github.com/pytest-dev/pytest/issues/891>`_: Remove ``testfunction.markername`` attributes - use ``Node.iter_markers(name=None)`` to iterate them. Deprecations ------------ - `3050 <https://github.com/pytest-dev/pytest/issues/3050>`_: Deprecated the ``pytest.config`` global. See https://docs.pytest.org/en/latest/deprecations.htmlpytest-config-global for rationale. - `3974 <https://github.com/pytest-dev/pytest/issues/3974>`_: Passing the ``message`` parameter of ``pytest.raises`` now issues a ``DeprecationWarning``. It is a common mistake to think this parameter will match the exception message, while in fact it only serves to provide a custom message in case the ``pytest.raises`` check fails. To avoid this mistake and because it is believed to be little used, pytest is deprecating it without providing an alternative for the moment. If you have concerns about this, please comment on `issue 3974 <https://github.com/pytest-dev/pytest/issues/3974>`__. - `4435 <https://github.com/pytest-dev/pytest/issues/4435>`_: Deprecated ``raises(..., 'code(as_a_string)')`` and ``warns(..., 'code(as_a_string)')``. See https://docs.pytest.org/en/latest/deprecations.htmlraises-warns-exec for rationale and examples. Features -------- - `3191 <https://github.com/pytest-dev/pytest/issues/3191>`_: A warning is now issued when assertions are made for ``None``. This is a common source of confusion among new users, which write: .. code-block:: python assert mocked_object.assert_called_with(3, 4, 5, key="value") When they should write: .. code-block:: python mocked_object.assert_called_with(3, 4, 5, key="value") Because the ``assert_called_with`` method of mock objects already executes an assertion. This warning will not be issued when ``None`` is explicitly checked. An assertion like: .. code-block:: python assert variable is None will not issue the warning. - `3632 <https://github.com/pytest-dev/pytest/issues/3632>`_: Richer equality comparison introspection on ``AssertionError`` for objects created using `attrs <http://www.attrs.org/en/stable/>`__ or `dataclasses <https://docs.python.org/3/library/dataclasses.html>`_ (Python 3.7+, `backported to 3.6 <https://pypi.org/project/dataclasses>`__). - `4278 <https://github.com/pytest-dev/pytest/issues/4278>`_: ``CACHEDIR.TAG`` files are now created inside cache directories. Those files are part of the `Cache Directory Tagging Standard <http://www.bford.info/cachedir/spec.html>`__, and can be used by backup or synchronization programs to identify pytest's cache directory as such. - `4292 <https://github.com/pytest-dev/pytest/issues/4292>`_: ``pytest.outcomes.Exit`` is derived from ``SystemExit`` instead of ``KeyboardInterrupt``. This allows us to better handle ``pdb`` exiting. - `4371 <https://github.com/pytest-dev/pytest/issues/4371>`_: Updated the ``--collect-only`` option to display test descriptions when ran using ``--verbose``. - `4386 <https://github.com/pytest-dev/pytest/issues/4386>`_: Restructured ``ExceptionInfo`` object construction and ensure incomplete instances have a ``repr``/``str``. - `4416 <https://github.com/pytest-dev/pytest/issues/4416>`_: pdb: added support for keyword arguments with ``pdb.set_trace``. It handles ``header`` similar to Python 3.7 does it, and forwards any other keyword arguments to the ``Pdb`` constructor.
pyup-bot commented 5 years ago

Closing this in favor of #79