Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | mypy: misc.py, test_misc.py | Ned Batchelder | 2023-01-03 | 1 | -30/+46 |
| | |||||
* | refactor: a better way to have maybe-importable third-party modules | Ned Batchelder | 2023-01-03 | 1 | -3/+5 |
| | |||||
* | mypy: control.py is checked | Ned Batchelder | 2022-12-31 | 1 | -2/+4 |
| | |||||
* | refactor: @contract is completely gone | Ned Batchelder | 2022-12-29 | 1 | -10/+0 |
| | |||||
* | refactor: remove more of contracts | Ned Batchelder | 2022-12-27 | 1 | -5/+0 |
| | |||||
* | refactor: remove more of the PyContracts stuff | Ned Batchelder | 2022-12-27 | 1 | -6/+4 |
| | |||||
* | test: remove pycontracts | Ned Batchelder | 2022-12-25 | 1 | -38/+8 |
| | |||||
* | refactor: human sorting | Ned Batchelder | 2022-11-06 | 1 | -4/+7 |
| | |||||
* | refactor: since we are showing regexes, make them a bit simpler | Ned Batchelder | 2022-10-15 | 1 | -1/+5 |
| | | | | | | The old code would always wrap the regex in a needless `(?s:...)` parenthesis. Path aliases are always single regexes, so they don't need that extra wrapping. This makes logged path maps easier to understand. | ||||
* | fix: */foo matches "foo/x.py", to help with combining relative file names. #991 | Ned Batchelder | 2022-10-15 | 1 | -1/+1 |
| | |||||
* | style: use new regex match object group access | Ned Batchelder | 2022-07-08 | 1 | -3/+3 |
| | |||||
* | style: parens should indent the same as their opening line | Ned Batchelder | 2022-05-01 | 1 | -1/+1 |
| | |||||
* | refactor: filename_suffix() is only used by CoverageData, so move it | Ned Batchelder | 2021-11-16 | 1 | -22/+0 |
| | |||||
* | refactor: a plural helper | Ned Batchelder | 2021-11-13 | 1 | -0/+11 |
| | |||||
* | style: convert more string formatting to f-strings | Ned Batchelder | 2021-11-11 | 1 | -1/+1 |
| | |||||
* | refactor(test): don't even import contracts if not using PyContracts | Ned Batchelder | 2021-11-04 | 1 | -6/+1 |
| | | | | | | | | On CPython 3.11, PyContracts fails on import, so we need to shut it off more completely. PyContracts is unmaintained these days, so we'll probably get rid of it completely soon. | ||||
* | fix: use human sorting on human-readable things | Ned Batchelder | 2021-10-12 | 1 | -0/+31 |
| | |||||
* | fix: source modules need to be re-imported. #1232 | Ned Batchelder | 2021-10-11 | 1 | -10/+28 |
| | |||||
* | style: use the official designation for utf-8 | Ned Batchelder | 2021-10-10 | 1 | -3/+3 |
| | | | | | Yes, this is completely unimportant. Don't ask me why I bothered, I'm not really sure. | ||||
* | test: mark some uncovered things | Ned Batchelder | 2021-10-08 | 1 | -1/+3 |
| | |||||
* | fix: make exceptions importable from coverage.misc again. #1226 | Ned Batchelder | 2021-10-06 | 1 | -0/+5 |
| | |||||
* | fix: pretend we didn't import third-party packages we use. #1228 | Ned Batchelder | 2021-10-06 | 1 | -0/+27 |
| | | | | | | tomli couldn't use coverage themselves because we imported it early. Cleaning sys.modules means their own imports will actually execute after coverage has started, so their files will be properly measured. | ||||
* | fix: Avoid a race condition in misc.ensure_dir (#1220) | Clément Pit-Claudel | 2021-09-02 | 1 | -2/+2 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * coverage/misc.py (ensure_dir): Pass exist_ok to os.makedirs, ensuring that if two concurrent instances of coverage.py entering this function at the same time won't fail with FileExistsError. Sample backtrace: Traceback (most recent call last): File "/usr/lib/python3.8/runpy.py", line 194, in _run_module_as_main return _run_code(code, main_globals, None, File "/usr/lib/python3.8/runpy.py", line 87, in _run_code exec(code, run_globals) File "/home/user/.local/lib/python3.8/site-packages/coverage/__main__.py", line 8, in <module> sys.exit(main()) File "/home/user/.local/lib/python3.8/site-packages/coverage/cmdline.py", line 871, in main status = CoverageScript().command_line(argv) File "/home/user/.local/lib/python3.8/site-packages/coverage/cmdline.py", line 588, in command_line return self.do_run(options, args) File "/home/user/.local/lib/python3.8/site-packages/coverage/cmdline.py", line 743, in do_run self.coverage.start() File "/home/user/.local/lib/python3.8/site-packages/coverage/control.py", line 535, in start self._init_for_start() File "/home/user/.local/lib/python3.8/site-packages/coverage/control.py", line 474, in _init_for_start self._init_data(suffix) File "/home/user/.local/lib/python3.8/site-packages/coverage/control.py", line 512, in _init_data ensure_dir_for_file(self.config.data_file) File "/home/user/.local/lib/python3.8/site-packages/coverage/misc.py", line 165, in ensure_dir_for_file ensure_dir(os.path.dirname(path)) File "/.local/lib/python3.8/site-packages/coverage/misc.py", line 160, in ensure_dir os.makedirs(directory) File "/usr/lib/python3.8/os.py", line 223, in makedirs mkdir(name, mode) | ||||
* | refactor: convert %-strings to f-strings | Ned Batchelder | 2021-07-28 | 1 | -5/+3 |
| | |||||
* | 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 |
| | |||||
* | refactor: move exceptions to their own module | Ned Batchelder | 2021-05-02 | 1 | -44/+1 |
| | |||||
* | refactor: pyupgrade --py36-plus coverage/*.py | Ned Batchelder | 2021-05-02 | 1 | -3/+3 |
| | |||||
* | refactor: move the remaining backward.py code, no more backward.py | Ned Batchelder | 2021-05-01 | 1 | -0/+25 |
| | |||||
* | refactor: remove more unneeded backward.py shims | Ned Batchelder | 2021-05-01 | 1 | -3/+2 |
| | | | | | | | | | | | | | | Gone are: - iitems - litems - iternext - to_bytes - to_string - binary_bytes - byte_to_int - bytes_to_ints - BUILTINS | ||||
* | refactor: remove unneeded backward.py shims | Ned Batchelder | 2021-05-01 | 1 | -3/+3 |
| | | | | | | | | | | | | | | | Removed were: - StringIO - configparser - string_class - unicode_class - range - zip_longest - get_thread_id - path_types - shlex_quote - reprlib | ||||
* | refactor: remove code explicitly choosing between py2 and py3 | Ned Batchelder | 2021-05-01 | 1 | -2/+1 |
| | |||||
* | build: update to latest pylint | Ned Batchelder | 2021-02-26 | 1 | -1/+1 |
| | |||||
* | Use set literals | Ned Batchelder | 2021-01-03 | 1 | -1/+1 |
| | |||||
* | Move test helpers to tests.helpers | Ned Batchelder | 2019-12-31 | 1 | -70/+0 |
| | |||||
* | Easier to decipher arcz output | Ned Batchelder | 2019-12-31 | 1 | -0/+31 |
| | |||||
* | Coverage(data_file=None) means no data file at all. #871 | Ned Batchelder | 2019-12-02 | 1 | -0/+14 |
| | |||||
* | Polishing from a lightning talk | Ned Batchelder | 2019-12-02 | 1 | -8/+8 |
| | |||||
* | Finish the sqldata.py docstrings | Ned Batchelder | 2019-11-10 | 1 | -1/+9 |
| | |||||
* | Polish up substitute_variables based on a lightning talk | Ned Batchelder | 2019-09-14 | 1 | -25/+25 |
| | |||||
* | Document the module-level stuff. #837 | Ned Batchelder | 2019-09-09 | 1 | -1/+1 |
| | |||||
* | Remove the JSON data code | Ned Batchelder | 2019-07-10 | 1 | -0/+14 |
| | |||||
* | Move arcz_to_arcs to misc so we can use it elsewhere | Ned Batchelder | 2019-06-19 | 1 | -0/+39 |
| | |||||
* | Polishing substitute_variables | Ned Batchelder | 2019-06-11 | 1 | -3/+2 |
| | |||||
* | group() can return a number of groups. Nice. | Ned Batchelder | 2019-06-10 | 1 | -1/+1 |
| | |||||
* | Move code to where it belongs | Ned Batchelder | 2018-12-24 | 1 | -38/+0 |
| | |||||
* | Debug-time environment variables can be set with set_env.py | Ned Batchelder | 2018-11-03 | 1 | -0/+1 |
| | |||||
* | You can turn off contracts while debugging tests | Ned Batchelder | 2018-11-03 | 1 | -1/+5 |
| | |||||
* | Helpers for making directories | Ned Batchelder | 2018-10-21 | 1 | -0/+15 |
| | |||||
* | Name decorator components to avoid docstring requirement | Ned Batchelder | 2018-09-09 | 1 | -5/+4 |
| |