Add assert_list to ensure an argument is a list#429
Closed
jcoveney wants to merge 1 commit intopantsbuild:masterfrom
Closed
Add assert_list to ensure an argument is a list#429jcoveney wants to merge 1 commit intopantsbuild:masterfrom
jcoveney wants to merge 1 commit intopantsbuild:masterfrom
Conversation
Contributor
Author
Contributor
Author
|
This is in. Thanks! |
asherf
added a commit
to asherf/pants
that referenced
this pull request
Feb 2, 2021
2.11.1 (2021-01-20) ------------------- * Fixed support for newer setuptools (v42+). Contributed by Michał Górny in `pantsbuild#451 <https://github.com/pytest-dev/pytest-cov/pull/451>`_. 2.11.0 (2021-01-18) ------------------- * Bumped minimum coverage requirement to 5.2.1. This prevents reporting issues. Contributed by Mateus Berardo de Souza Terra in `pantsbuild#433 <https://github.com/pytest-dev/pytest-cov/pull/433>`_. * Improved sample projects (from the `examples <https://github.com/pytest-dev/pytest-cov/tree/master/examples>`_ directory) to support running `tox -e pyXY`. Now the example configures a suffixed coverage data file, and that makes the cleanup environment unnecessary. Contributed by Ganden Schaffner in `pantsbuild#435 <https://github.com/pytest-dev/pytest-cov/pull/435>`_. * Removed the empty `console_scripts` entrypoint that confused some Gentoo build script. I didn't ask why it was so broken cause I didn't want to ruin my day. Contributed by Michał Górny in `pantsbuild#434 <https://github.com/pytest-dev/pytest-cov/pull/434>`_. * Fixed the missing `coverage context <https://coverage.readthedocs.io/en/stable/contexts.html>`_ when using subprocesses. Contributed by Bernát Gábor in `pantsbuild#443 <https://github.com/pytest-dev/pytest-cov/pull/443>`_. * Updated the config section in the docs. Contributed by Pamela McA'Nulty in `pantsbuild#429 <https://github.com/pytest-dev/pytest-cov/pull/429>`_. * Migrated CI to travis-ci.com (from .org). https://github.com/pytest-dev/pytest-cov/blob/master/CHANGELOG.rst
asherf
added a commit
to asherf/pants
that referenced
this pull request
Feb 3, 2021
2.11.1 (2021-01-20) ------------------- * Fixed support for newer setuptools (v42+). Contributed by Michał Górny in `pantsbuild#451 <https://github.com/pytest-dev/pytest-cov/pull/451>`_. 2.11.0 (2021-01-18) ------------------- * Bumped minimum coverage requirement to 5.2.1. This prevents reporting issues. Contributed by Mateus Berardo de Souza Terra in `pantsbuild#433 <https://github.com/pytest-dev/pytest-cov/pull/433>`_. * Improved sample projects (from the `examples <https://github.com/pytest-dev/pytest-cov/tree/master/examples>`_ directory) to support running `tox -e pyXY`. Now the example configures a suffixed coverage data file, and that makes the cleanup environment unnecessary. Contributed by Ganden Schaffner in `pantsbuild#435 <https://github.com/pytest-dev/pytest-cov/pull/435>`_. * Removed the empty `console_scripts` entrypoint that confused some Gentoo build script. I didn't ask why it was so broken cause I didn't want to ruin my day. Contributed by Michał Górny in `pantsbuild#434 <https://github.com/pytest-dev/pytest-cov/pull/434>`_. * Fixed the missing `coverage context <https://coverage.readthedocs.io/en/stable/contexts.html>`_ when using subprocesses. Contributed by Bernát Gábor in `pantsbuild#443 <https://github.com/pytest-dev/pytest-cov/pull/443>`_. * Updated the config section in the docs. Contributed by Pamela McA'Nulty in `pantsbuild#429 <https://github.com/pytest-dev/pytest-cov/pull/429>`_. * Migrated CI to travis-ci.com (from .org). https://github.com/pytest-dev/pytest-cov/blob/master/CHANGELOG.rst
asherf
added a commit
to asherf/pants
that referenced
this pull request
Feb 3, 2021
2.11.1 (2021-01-20) ------------------- * Fixed support for newer setuptools (v42+). Contributed by Michał Górny in `pantsbuild#451 <https://github.com/pytest-dev/pytest-cov/pull/451>`_. 2.11.0 (2021-01-18) ------------------- * Bumped minimum coverage requirement to 5.2.1. This prevents reporting issues. Contributed by Mateus Berardo de Souza Terra in `pantsbuild#433 <https://github.com/pytest-dev/pytest-cov/pull/433>`_. * Improved sample projects (from the `examples <https://github.com/pytest-dev/pytest-cov/tree/master/examples>`_ directory) to support running `tox -e pyXY`. Now the example configures a suffixed coverage data file, and that makes the cleanup environment unnecessary. Contributed by Ganden Schaffner in `pantsbuild#435 <https://github.com/pytest-dev/pytest-cov/pull/435>`_. * Removed the empty `console_scripts` entrypoint that confused some Gentoo build script. I didn't ask why it was so broken cause I didn't want to ruin my day. Contributed by Michał Górny in `pantsbuild#434 <https://github.com/pytest-dev/pytest-cov/pull/434>`_. * Fixed the missing `coverage context <https://coverage.readthedocs.io/en/stable/contexts.html>`_ when using subprocesses. Contributed by Bernát Gábor in `pantsbuild#443 <https://github.com/pytest-dev/pytest-cov/pull/443>`_. * Updated the config section in the docs. Contributed by Pamela McA'Nulty in `pantsbuild#429 <https://github.com/pytest-dev/pytest-cov/pull/429>`_. * Migrated CI to travis-ci.com (from .org). https://github.com/pytest-dev/pytest-cov/blob/master/CHANGELOG.rst
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This enforces fields like sources, resources, to be a list (or an acceptable set of types which can be turned into a list).
This avoids the case where resources = 'valid/pointer' is resolved as resources = ['v', 'a',,,] while still enforcing that the field is a list.