Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | WIPnedbat/fix-c-tracer | Ned Batchelder | 2021-08-26 | 2 | -0/+41 |
| | |||||
* | refactor: use sets to collect data | Ned Batchelder | 2021-08-15 | 5 | -28/+28 |
| | | | | | | | Coverage.py predates sets as a built-in data structure, so the file data collection has long been dicts with None as the values. Sets are available to us now (since Python 2.4 in 2004, which coverage.py dropped support for in 2014!), we use sets. | ||||
* | fix: missing exceptions through with statements in 3.10 aren't considered ↵ | Ned Batchelder | 2021-08-14 | 1 | -8/+4 |
| | | | | missing branches. #1205 | ||||
* | debug: improved logging in tracer.c | Ned Batchelder | 2021-08-09 | 1 | -13/+14 |
| | |||||
* | Fix parsing 'command_line' option (#1201) | Pavel Tsialnou | 2021-08-06 | 1 | -1/+1 |
| | | | | | Coverage config files supports 'command_line' parameters. However, only '-m' is parsed properly. The line 'command_line = "--module unittest discover"' is considered as a path, not a module option. | ||||
* | feat: mention skipped file counts in the HTML report. #1163 | Ned Batchelder | 2021-08-06 | 2 | -1/+28 |
| | |||||
* | feat: `coverage combine` now prints messages naming the files being ↵ | Ned Batchelder | 2021-08-05 | 2 | -1/+6 |
| | | | | combined. #1105 (#1208) | ||||
* | feat: HTML report now says where the report is. #1195 (#1207) | Ned Batchelder | 2021-08-05 | 3 | -2/+19 |
| | |||||
* | feat: unrecognized options are now a warning rather than error. #1035 (#1206) | Ned Batchelder | 2021-08-05 | 2 | -18/+23 |
| | | | | Because they are warnings issued while parsing the configuration file, it's not possible to suppress them with the coverage configuration. | ||||
* | style: fix typos discovered by codespell (#1197) | Christian Clauss | 2021-08-01 | 1 | -1/+1 |
| | | | | | | | | | | | python3 -m pip install codespell codespell --ignore-words-list="ba,cant,datas,hart,linke,ned,nin,overthere,upto" --skip="*.js" * Fix typos discovered by codespell * datas * intgers ==> integers | ||||
* | fix: correct previous refactorings | Ned Batchelder | 2021-07-28 | 5 | -9/+9 |
| | | | | | File names should not be rendered with !r, since on Windows that will produce double backslashes, which only confuses people. | ||||
* | refactor: convert %-strings to f-strings | Ned Batchelder | 2021-07-28 | 9 | -27/+17 |
| | |||||
* | fix: match/case will trace the default case line | Ned Batchelder | 2021-07-27 | 1 | -3/+0 |
| | |||||
* | fix: retry immediately on a failure inside executemany. #1010 | Ned Batchelder | 2021-07-21 | 1 | -1/+7 |
| | |||||
* | fix: raise chained errors with "from" #998 | Ned Batchelder | 2021-07-20 | 7 | -28/+26 |
| | | | | | | This makes exceptions report their causes correctly, as "The above exception was the direct cause of the following exception" instead of "During handling of the above exception, another exception occurred." | ||||
* | build: bump version6.0b1 | Ned Batchelder | 2021-07-18 | 1 | -1/+1 |
| | |||||
* | docs: prep for 6.0b1 | Ned Batchelder | 2021-07-18 | 1 | -1/+1 |
| | |||||
* | build: update pylint and remove some unneeded warning suppression | Ned Batchelder | 2021-07-18 | 1 | -1/+1 |
| | |||||
* | fix: generate flat file names differently | Ned Batchelder | 2021-07-15 | 1 | -8/+9 |
| | | | | | | | | Fixes a few unusual issues with reports: - #580: HTML report generation fails on too long path - #584: File collisions in coverage report html - #1167: Remove leading underscore in coverage html | ||||
* | fix: it just seems silly to use more than 32 chars for a fingerprint | Ned Batchelder | 2021-07-14 | 1 | -1/+1 |
| | |||||
* | fix: use a modern hash when fingerprinting. #1189 | Ned Batchelder | 2021-07-13 | 1 | -8/+8 |
| | |||||
* | Support TOML v1.0.0 syntax in `pyproject.toml` (#1186) | Thomas Grainger | 2021-07-13 | 1 | -6/+6 |
| | | | | | | | | | | | | | | | | | * Support TOML v1.0.0 syntax in `pyproject.toml` fixes #1180 Co-authored-by: Taneli Hukkinen <3275109+hukkin@users.noreply.github.com> * fix toml meta test * use pytest.mark.parametrize to narrow test failure * Update tests/test_config.py Co-authored-by: Taneli Hukkinen <3275109+hukkin@users.noreply.github.com> Co-authored-by: Taneli Hukkinen <3275109+hukkin@users.noreply.github.com> | ||||
* | refactor: Python 3.9 added an accessor for frame->f_code | Ned Batchelder | 2021-07-08 | 2 | -11/+18 |
| | | | | This accessor is now required in 3.11, so let's use it. | ||||
* | feat: soft keywords are shown in bold in the HTML report | Ned Batchelder | 2021-06-06 | 2 | -3/+40 |
| | | | | | | | | The match and case soft keywords are shown in bold when they are keywords, and not when they are not. The underscore soft keyword is ignored, because it is harder to get right, and because it doesn't look that much different in bold anyway. | ||||
* | feat: add support for Python 3.10 match-case statements | Ned Batchelder | 2021-06-06 | 2 | -0/+24 |
| | |||||
* | fix: in Python 3.10, leaving a with block exits through the with statement. | Ned Batchelder | 2021-06-05 | 2 | -9/+77 |
| | | | | This need 3.10.0b3 (not yet released) to fully pass. | ||||
* | refactor: no need for clever byte_parser property | Ned Batchelder | 2021-06-05 | 1 | -10/+3 |
| | | | | | It was only ever used once per object, so just make the ByteParser when we need it. | ||||
* | test: add a test for annotated assignment | Ned Batchelder | 2021-06-05 | 1 | -1/+4 |
| | | | | | | | | | Every statement-level ast node should be tested. Annotated assignment was missing. Also, we don't need "exec" anymore, that was only for Python 2. And: this is the 1000th test! | ||||
* | test: during testing, be strict about handling all ast nodes | Ned Batchelder | 2021-06-04 | 1 | -4/+3 |
| | |||||
* | refactor: better naming for a code object dispatcher | Ned Batchelder | 2021-06-04 | 1 | -14/+16 |
| | |||||
* | refactor: delegate to blocks and avoid isinstance | Ned Batchelder | 2021-06-04 | 1 | -38/+87 |
| | |||||
* | refactor: remove things only needed for Python 2 | Ned Batchelder | 2021-06-04 | 1 | -26/+1 |
| | |||||
* | fix: use more explicit names for some debug information | Ned Batchelder | 2021-06-02 | 1 | -2/+2 |
| | |||||
* | refactor: remove globals from Numbers | Ned Batchelder | 2021-06-01 | 6 | -39/+33 |
| | |||||
* | fix: --fail-under=100 could report 100 is less than 100. | Ned Batchelder | 2021-05-31 | 2 | -10/+20 |
| | | | | | | | Use the same rounding rules for the fail-under message that are used for totals everywhere else, so that it won't say: total of 100 is less than fail-under=100 | ||||
* | feat: warnings are now real warnings | Ned Batchelder | 2021-05-30 | 4 | -14/+15 |
| | | | | | | This makes coverage warnings visible when running test suites under pytest. But it also means some uninteresting warnings would show up in our own test suite, so we had to catch or suppress those. | ||||
* | feat: include some usual env vars in debug-sys | Ned Batchelder | 2021-05-23 | 1 | -1/+4 |
| | |||||
* | COVERAGE_DEBUG_FILE accepts "stdout" and "stderr" | Ned Batchelder | 2021-05-23 | 1 | -1/+3 |
| | |||||
* | fix: Python 3.8.10 changed how __file__ is reported when running directories | Ned Batchelder | 2021-05-11 | 1 | -0/+5 |
| | |||||
* | docs: add a word to clarify an API | Ned Batchelder | 2021-05-08 | 1 | -1/+1 |
| | |||||
* | fix: shorten the sqlite debug info listing | Ned Batchelder | 2021-05-04 | 1 | -2/+5 |
| | | | | | | This is totally cosmetic. I often look at "coverage debug sys", and the long list of SQLite info at the end is never the thing I want to look at. So squish it up to take less space. | ||||
* | refactor: get rid of My* version shims we don't need anymore | Ned Batchelder | 2021-05-03 | 3 | -39/+19 |
| | |||||
* | fix: make data collection operations thread-safe | Ned Batchelder | 2021-05-03 | 1 | -0/+20 |
| | |||||
* | refactor: remove redundant Python 2 code (#1155) | Hugo van Kemenade | 2021-05-02 | 1 | -1/+1 |
| | | | | | | | | | | | * Remove Python 2 code * Upgrade Python syntax with pyupgrade * Upgrade Python syntax with pyupgrade --py3-plus * Upgrade Python syntax with pyupgrade --py36-plus * Remove unused imports | ||||
* | refactor: convert more %-formatting to f-strings | Ned Batchelder | 2021-05-02 | 4 | -20/+20 |
| | |||||
* | refactor: remove a now no-op function | Ned Batchelder | 2021-05-02 | 2 | -13/+6 |
| | |||||
* | refactor: move exceptions to their own module | Ned Batchelder | 2021-05-02 | 20 | -64/+79 |
| | |||||
* | build: update to latest pylintgood-meta | Ned Batchelder | 2021-05-02 | 3 | -3/+0 |
| | |||||
* | refactor: remove unneeded Py2 C code | Ned Batchelder | 2021-05-02 | 2 | -59/+0 |
| | |||||
* | refactor: remove a few more version checks | Ned Batchelder | 2021-05-02 | 5 | -25/+9 |
| |