summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* chore: make upgradeNed Batchelder2023-03-148-87/+87
|
* docs: never run pip directlyNed Batchelder2023-03-144-6/+6
|
* docs: changelog for #1583Ned Batchelder2023-03-142-1/+6
|
* Fix lcov coverageIan Moore2023-03-142-3/+3
|
* build: make the coverage workflow more similar to the testsuite workflowNed Batchelder2023-03-122-6/+6
|
* fix: recent pypy3.9 now omits lines after jumpsNed Batchelder2023-03-122-4/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We were seeing these failures in the nightly builds: ``` FAILED tests/test_arcs.py::LoopArcTest::test_continue - AssertionError: Possible arcs differ: minus is expected, plus is actual (-1, 1) # .1 (1, 2) # 12 (1, 5) # 15 (2, 3) # 23 (3, 1) # 31 - (4, 1) # 41 (5, -1) # 5. Missing arcs differ: minus is expected, plus is actual - (4, 1) # 41 + assert False FAILED tests/test_arcs.py::LoopArcTest::test_break - AssertionError: Possible arcs differ: minus is expected, plus is actual (-1, 1) # .1 (1, 2) # 12 (1, 5) # 15 (2, 3) # 23 (3, 5) # 35 - (4, 1) # 41 (5, -1) # 5. Missing arcs differ: minus is expected, plus is actual (1, 5) # 15 - (4, 1) # 41 assert False FAILED tests/test_arcs.py::ExceptionArcTest::test_raise_followed_by_statement - AssertionError: Possible arcs differ: minus is expected, plus is actual (-1, 1) # .1 (1, 2) # 12 (2, 3) # 23 (3, 4) # 34 (4, 6) # 46 - (5, 8) # 58 (6, 7) # 67 (7, 8) # 78 (8, -1) # 8. Missing arcs differ: minus is expected, plus is actual - (5, 8) # 58 + assert False FAILED tests/test_coverage.py::SimpleStatementTest::test_raise_followed_by_statement - AssertionError: [1, 2, 4, 5] != [1, 2, 3, 4, 5] assert [1, 2, 4, 5] == [1, 2, 3, 4, 5] At index 2 diff: 4 != 3 Right contains one more item: 5 Full diff: - [1, 2, 3, 4, 5] ? --- + [1, 2, 4, 5] FAILED tests/test_coverage.py::SimpleStatementTest::test_break - AssertionError: [1, 2, 3, 5] != [1, 2, 3, 4, 5] assert [1, 2, 3, 5] == [1, 2, 3, 4, 5] At index 3 diff: 5 != 4 Right contains one more item: 5 Full diff: - [1, 2, 3, 4, 5] ? --- + [1, 2, 3, 5] FAILED tests/test_coverage.py::SimpleStatementTest::test_continue - AssertionError: [1, 2, 3, 5] != [1, 2, 3, 4, 5] assert [1, 2, 3, 5] == [1, 2, 3, 4, 5] At index 3 diff: 5 != 4 Right contains one more item: 5 Full diff: - [1, 2, 3, 4, 5] ? --- + [1, 2, 3, 5] ```
* debug: label the assert messagesNed Batchelder2023-03-121-2/+2
|
* build: run mypy by default, and fix "unused" errors from updated mypyNed Batchelder2023-03-073-5/+5
|
* chore: make upgradeNed Batchelder2023-03-079-523/+506
|
* build: bump versionNed Batchelder2023-02-262-2/+8
|
* docs: sample html for 7.2.17.2.1Ned Batchelder2023-02-2610-37/+37
|
* docs: prep for 7.2.1Ned Batchelder2023-02-263-9/+11
|
* docs: build steps need to make a release-prep branch soonerNed Batchelder2023-02-261-1/+2
|
* fix: export our public names for type checking. #1564Ned Batchelder2023-02-265-9/+31
|
* refactor: remove unneeded pydoc weirdnessNed Batchelder2023-02-251-11/+3
|
* fix: always use full-version rtfd links #1566Ned Batchelder2023-02-243-7/+10
|
* fix(docs): wrong link syntaxNed Batchelder2023-02-231-1/+1
|
* chore: make upgradeNed Batchelder2023-02-239-138/+138
|
* build: bump versionNed Batchelder2023-02-222-2/+8
|
* docs: latest sample html report7.2.0Ned Batchelder2023-02-2211-3899/+3717
|
* build: cog movedNed Batchelder2023-02-221-3/+3
|
* docs: prep for 7.2.0Ned Batchelder2023-02-223-9/+11
|
* docs: final paperwork for exclude_also #1557Ned Batchelder2023-02-224-5/+17
|
* feat: add extend_exclude optionAlpha Chen2023-02-224-3/+27
|
* test: stricter regex to avoid false CodeQL alarmsNed Batchelder2023-02-222-3/+3
| | | | | | | | | Will fix: https://github.com/nedbat/coveragepy/security/code-scanning/3 https://github.com/nedbat/coveragepy/security/code-scanning/4 (though tbh, not sure how to close those as fixed?)
* docs: better mastodon labels, and 3.12a5Ned Batchelder2023-02-152-5/+6
|
* docs: bye twitter, hello mastodonNed Batchelder2023-02-154-13/+10
|
* docs: keep track of an issue I wrote that this pin avoidsNed Batchelder2023-02-141-0/+1
|
* build: pin setuptools to avoid their version-checking bugNed Batchelder2023-02-1412-96/+128
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | https://github.com/pypa/packaging/issues/678 Nightly builds were failing because newer setuptools didn't like the Python version number: ``` % .tox/anypy/bin/python -c "import pkg_resources as p; p.load_entry_point('coverage', 'console_scripts', 'coverage')()" Traceback (most recent call last): File "/Users/nedbatchelder/coverage/trunk/.tox/anypy/lib/python3.12/site-packages/pkg_resources/__init__.py", line 2711, in _dep_map return self.__dep_map ^^^^^^^^^^^^^^ File "/Users/nedbatchelder/coverage/trunk/.tox/anypy/lib/python3.12/site-packages/pkg_resources/__init__.py", line 2826, in __getattr__ raise AttributeError(attr) AttributeError: _Distribution__dep_map During handling of the above exception, another exception occurred: Traceback (most recent call last): File "<string>", line 1, in <module> File "/Users/nedbatchelder/coverage/trunk/.tox/anypy/lib/python3.12/site-packages/pkg_resources/__init__.py", line 522, in load_entry_point return get_distribution(dist).load_entry_point(group, name) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/nedbatchelder/coverage/trunk/.tox/anypy/lib/python3.12/site-packages/pkg_resources/__init__.py", line 2855, in load_entry_point return ep.load() ^^^^^^^^^ File "/Users/nedbatchelder/coverage/trunk/.tox/anypy/lib/python3.12/site-packages/pkg_resources/__init__.py", line 2467, in load self.require(*args, **kwargs) File "/Users/nedbatchelder/coverage/trunk/.tox/anypy/lib/python3.12/site-packages/pkg_resources/__init__.py", line 2489, in require reqs = self.dist.requires(self.extras) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/nedbatchelder/coverage/trunk/.tox/anypy/lib/python3.12/site-packages/pkg_resources/__init__.py", line 2746, in requires dm = self._dep_map ^^^^^^^^^^^^^ File "/Users/nedbatchelder/coverage/trunk/.tox/anypy/lib/python3.12/site-packages/pkg_resources/__init__.py", line 2713, in _dep_map self.__dep_map = self._filter_extras(self._build_dep_map()) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/nedbatchelder/coverage/trunk/.tox/anypy/lib/python3.12/site-packages/pkg_resources/__init__.py", line 2728, in _filter_extras invalid_marker(marker) or not evaluate_marker(marker) ^^^^^^^^^^^^^^^^^^^^^^ File "/Users/nedbatchelder/coverage/trunk/.tox/anypy/lib/python3.12/site-packages/pkg_resources/__init__.py", line 1415, in invalid_marker evaluate_marker(text) File "/Users/nedbatchelder/coverage/trunk/.tox/anypy/lib/python3.12/site-packages/pkg_resources/__init__.py", line 1433, in evaluate_marker return marker.evaluate() ^^^^^^^^^^^^^^^^^ File "/Users/nedbatchelder/coverage/trunk/.tox/anypy/lib/python3.12/site-packages/pkg_resources/_vendor/packaging/markers.py", line 245, in evaluate return _evaluate_markers(self._markers, current_environment) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/nedbatchelder/coverage/trunk/.tox/anypy/lib/python3.12/site-packages/pkg_resources/_vendor/packaging/markers.py", line 151, in _evaluate_markers groups[-1].append(_eval_op(lhs_value, op, rhs_value)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/nedbatchelder/coverage/trunk/.tox/anypy/lib/python3.12/site-packages/pkg_resources/_vendor/packaging/markers.py", line 109, in _eval_op return spec.contains(lhs, prereleases=True) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/nedbatchelder/coverage/trunk/.tox/anypy/lib/python3.12/site-packages/pkg_resources/_vendor/packaging/specifiers.py", line 565, in contains normalized_item = _coerce_version(item) ^^^^^^^^^^^^^^^^^^^^^ File "/Users/nedbatchelder/coverage/trunk/.tox/anypy/lib/python3.12/site-packages/pkg_resources/_vendor/packaging/specifiers.py", line 36, in _coerce_version version = Version(version) ^^^^^^^^^^^^^^^^ File "/Users/nedbatchelder/coverage/trunk/.tox/anypy/lib/python3.12/site-packages/pkg_resources/_vendor/packaging/version.py", line 197, in __init__ raise InvalidVersion(f"Invalid version: '{version}'") pkg_resources.extern.packaging.version.InvalidVersion: Invalid version: '3.12.0a5+' ```
* refactor: no placebos, use true OptionalNed Batchelder2023-02-143-50/+40
| | | | | | For objects that truly might not exist, use Optional. Some objects will always exist eventually, and for those we have some null implementation standins to use without making new placebo classes.
* docs: don't show type hints in the signatureNed Batchelder2023-02-121-0/+6
| | | | | List the parameters separately, with type hints. This leaves a list of params with dashes and no description, but we can get to that later.
* refactor: make placebos privateNed Batchelder2023-02-121-7/+7
|
* fix: Path objects are ok for data_file and config_file. #1552Ned Batchelder2023-02-127-18/+45
|
* refactor: use placebos instead of non-existent attributesNed Batchelder2023-02-113-37/+72
| | | | | Details of the problem and thought process: https://nedbatchelder.com/blog/202302/late_initialization_with_mypy.html
* mypy: typeshed bug got fixedNed Batchelder2023-02-091-3/+2
|
* test: adapt to latest pylintNed Batchelder2023-02-098-9/+10
|
* chore: make upgradeNed Batchelder2023-02-0910-412/+432
|
* fix: only write "Wrote report" message if report succeeded.Ned Batchelder2023-02-083-18/+22
| | | | | | | For example, see [issue 1554](https://github.com/nedbat/coveragepy/issues/1554) for the previous misleading behavior when the exception being raised wasn't a CoverageException.
* feat: simplify purges_filesNed Batchelder2023-02-085-130/+53
| | | | Also, move tests to test_data.py, and finish covering the code.
* build: next version will be 7.2.0Ned Batchelder2023-02-081-1/+1
|
* build: an env var to allow no-network tox runsNed Batchelder2023-02-081-2/+4
| | | | (for airplanes)
* feat: add purge_files method to CoverageData + unit tests for it (#1547)Wingware Development2023-02-042-0/+142
| | | | | | | | | | | | | | | * Add purge_files method to CoverageData, to allow for selective removal and update of coverage data. * Fix assert syntax so it's not true; this code isn't reached in the test unless it fails and then it would have failed to fail. * Remove trailing whitespace; did not expect this would matter on a blank line. * Add type annotations required by mypy --------- Co-authored-by: Stephan Deibel <sdeibel@wingware.com>
* fix: two typing tweaksNed Batchelder2023-02-042-1/+2
|
* docs: paperwork for #1543Ned Batchelder2023-02-032-0/+7
| | | | This is about the fix in commit 96af3eae92a7b5dc1053be194820adf47c17777a
* fix: add safety for empty stack on shutdown. (#1543)Russell Keith-Magee2023-02-031-3/+11
| | | | | | | | | * Add safety for empty stack on shutdown. * Correct line length linting issue. --------- Co-authored-by: Ned Batchelder <ned@nedbatchelder.com>
* docs: paperwork for py.typedNed Batchelder2023-02-022-1/+5
|
* add py.typedKotlinIsland2023-02-022-0/+1
|
* build: some files need to be excused from usual formatting rulesNed Batchelder2023-01-303-2/+8
|
* build: no need for check_eol, pylint does most of itNed Batchelder2023-01-302-73/+0
|
* build(docs): correct [gh-actions] to [gh]Ned Batchelder2023-01-284-4/+4
|