Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | temp: collect information about sqlite journal_modenedbat/wtf-sqlite | Ned Batchelder | 2023-03-16 | 1 | -0/+3 |
| | |||||
* | fix: Use "journal_mode=memory" if "journal_mode=off" fails. | Brad Smith | 2023-03-16 | 1 | -0/+5 |
| | |||||
* | refactor: no placebos, use true Optional | Ned Batchelder | 2023-02-14 | 1 | -2/+0 |
| | | | | | | 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. | ||||
* | fix: Path objects are ok for data_file and config_file. #1552 | Ned Batchelder | 2023-02-12 | 1 | -2/+2 |
| | |||||
* | refactor: use placebos instead of non-existent attributes | Ned Batchelder | 2023-02-11 | 1 | -0/+2 |
| | | | | | Details of the problem and thought process: https://nedbatchelder.com/blog/202302/late_initialization_with_mypy.html | ||||
* | feat: simplify purges_files | Ned Batchelder | 2023-02-08 | 1 | -24/+19 |
| | | | | Also, move tests to test_data.py, and finish covering the code. | ||||
* | feat: add purge_files method to CoverageData + unit tests for it (#1547) | Wingware Development | 2023-02-04 | 1 | -0/+36 |
| | | | | | | | | | | | | | | | * 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 tweaks | Ned Batchelder | 2023-02-04 | 1 | -1/+1 |
| | |||||
* | perf: avoid needless sql operations. #1538 | Ned Batchelder | 2023-01-24 | 1 | -9/+7 |
| | | | | | | | | | | If the set of arcs is empty, skip the SQL operations. We also need to allow setting a file tracer for an unmeasured file, to avoid the Cython problem whose fix caused the performance issue in the first place. TBH, I don't know why we had to prevent file tracers on unmeasured files. Perhaps pytest-cov has changed to avoid the behavior that caused problems. | ||||
* | style: use good style for annotated defaults parameters | Ned Batchelder | 2023-01-05 | 1 | -15/+15 |
| | |||||
* | mypy: Iterator is better than Generator | Ned Batchelder | 2023-01-05 | 1 | -3/+3 |
| | |||||
* | fix: race condition on data file shouldn't break combining. #1522 | Ned Batchelder | 2023-01-03 | 1 | -1/+1 |
| | |||||
* | mypy: check collector.py and plugin_support.py | Ned Batchelder | 2023-01-01 | 1 | -5/+5 |
| | |||||
* | mypy: add annotate.py and jsonreport.py | Ned Batchelder | 2022-12-31 | 1 | -1/+1 |
| | |||||
* | mypy: control.py is checked | Ned Batchelder | 2022-12-31 | 1 | -5/+5 |
| | |||||
* | refactor: remove some unused code | Ned Batchelder | 2022-12-29 | 1 | -16/+2 |
| | |||||
* | mypy: check sqldata.py | Ned Batchelder | 2022-12-29 | 1 | -88/+122 |
| | |||||
* | refactor: ensure all sqlite cursors are closed | Ned Batchelder | 2022-11-27 | 1 | -93/+131 |
| | |||||
* | refactor: SimpleReprMixing wasn't simple, it was auto | Ned Batchelder | 2022-11-27 | 1 | -3/+3 |
| | | | | Also, I'm not sure I like it as a mixin... | ||||
* | feat: implicit path mapping during reporting. #1212 | Ned Batchelder | 2022-11-27 | 1 | -1/+6 |
| | |||||
* | perf: more combine speed-ups | Ned Batchelder | 2022-11-20 | 1 | -7/+14 |
| | | | | | | | By avoiding writing metadata that differs but doesn't change the data, we get a higher hitrate on the hash-checking when combining. Use --debug=process to include these details for debugging. | ||||
* | perf: hash data files during combining to avoid unneeded work. #1483 | Ned Batchelder | 2022-11-08 | 1 | -3/+0 |
| | | | | | | | | | When generating many parallel data files, often some data files will be exact copies of each other. Checking the hashes, we can avoid combining the duplicates, speeding the process. On a coverage.py metacov, we had 651 duplicates out of 2189 files (29%). The time to combine was reduced by 17%. | ||||
* | build: 3.11.0 and 3.12.0a1 are available | Ned Batchelder | 2022-10-27 | 1 | -1/+0 |
| | |||||
* | feat: implicitly combine relative paths | Ned Batchelder | 2022-10-15 | 1 | -1/+3 |
| | |||||
* | feat: --debug=pathmap will show details of re-mapping due to [paths] setting. | Ned Batchelder | 2022-09-16 | 1 | -2/+1 |
| | |||||
* | fix: filenames can contain special glob characters (#1405) | earthman1 | 2022-08-06 | 1 | -2/+2 |
| | | | | | * Fix globbing of filenames that contain special glob characters * glob the path as well as the filename | ||||
* | refactor: SQLite REGEX function can be inline | Ned Batchelder | 2022-06-08 | 1 | -6/+1 |
| | |||||
* | fix: don't create a data file when just trying to read one. #13286.4 | Ned Batchelder | 2022-05-22 | 1 | -2/+3 |
| | |||||
* | feat: a new debug option `sqldata` shows all the data being written to the db. | Ned Batchelder | 2022-05-22 | 1 | -10/+23 |
| | |||||
* | refactor: SqliteDb uses its debug object more like other code | Ned Batchelder | 2022-05-22 | 1 | -7/+7 |
| | |||||
* | style: make sqldata.py code more uniform | Ned Batchelder | 2022-05-21 | 1 | -20/+20 |
| | |||||
* | fix: CoverageData(no_disk=True).update() now works. #1323 | Ned Batchelder | 2022-05-21 | 1 | -5/+7 |
| | |||||
* | debug: slightly nicer wrapping of the sqlite3 debug info | Ned Batchelder | 2022-05-14 | 1 | -3/+2 |
| | |||||
* | test: remove version-specfic skips we no longer need | Ned Batchelder | 2022-05-13 | 1 | -3/+0 |
| | |||||
* | style: parens should indent the same as their opening line | Ned Batchelder | 2022-05-01 | 1 | -3/+3 |
| | |||||
* | debug: include an indication of exception in the debug log | Ned Batchelder | 2022-02-03 | 1 | -0/+4 |
| | |||||
* | fix: use a re-entrant lock to avoid self-deadlocking #1310 | Ned Batchelder | 2022-01-30 | 1 | -1/+5 |
| | |||||
* | test: skip tests on py 3.11.0a4 that are failing in metacov | Ned Batchelder | 2022-01-29 | 1 | -0/+3 |
| | | | | | This specific set of circumstances was triggering https://bugs.python.org/issue44088 | ||||
* | fix: create the db as needed when accessed | Ned Batchelder | 2022-01-20 | 1 | -30/+25 |
| | |||||
* | refactor: make this more apparent | Ned Batchelder | 2022-01-17 | 1 | -1/+2 |
| | |||||
* | refactor: filename_suffix() is only used by CoverageData, so move it | Ned Batchelder | 2021-11-16 | 1 | -1/+23 |
| | |||||
* | docs: clarify the CoverageData(basename=) argument. #985 | Ned Batchelder | 2021-11-15 | 1 | -1/+1 |
| | | | | [skip actions] | ||||
* | refactor: specialize exceptions | Ned Batchelder | 2021-11-14 | 1 | -16/+16 |
| | | | | | | CoverageException is fine as a base class, but not good to use for raising (and catching sometimes). Introduce specialized exceptions that allow third-party tools to integrate better. | ||||
* | refactor: no need for __nonzero__, that was py2 only | Ned Batchelder | 2021-11-13 | 1 | -3/+1 |
| | |||||
* | test: cover the last edge cases in sqldata.py | Ned Batchelder | 2021-10-10 | 1 | -4/+4 |
| | |||||
* | fix: raise CoverageException for SQLite connection errorsnedbat/sqldata-edge-tests | Ned Batchelder | 2021-10-10 | 1 | -1/+5 |
| | |||||
* | style: use the official designation for utf-8 | Ned Batchelder | 2021-10-10 | 1 | -2/+2 |
| | | | | | Yes, this is completely unimportant. Don't ask me why I bothered, I'm not really sure. | ||||
* | fix: contexts_by_lineno now returns a true dict | Ned Batchelder | 2021-10-09 | 1 | -8/+10 |
| | |||||
* | style: make string quotes uniform | Ned Batchelder | 2021-10-09 | 1 | -74/+71 |
| | |||||
* | refactor: use sets to collect data | Ned Batchelder | 2021-08-15 | 1 | -4/+5 |
| | | | | | | | 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. |