Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | style: some clean-ups | Ned Batchelder | 2023-05-09 | 1 | -1/+1 |
| | |||||
* | style: double quotes | Ned Batchelder | 2023-03-22 | 1 | -17/+17 |
| | |||||
* | fix: don't measure all third-party packages if source is in third-party location | Manuel Jacob | 2023-03-15 | 1 | -12/+13 |
| | | | | | | | | There is logic to not measure third-party packages inside configured sources. However, when a (i.e. another) configured source was inside a third-party location, this logic was previously disabled completely. This caused a problem if a virtual env is set up inside a configured source directory and a configured source package gets installed inside the virtual env. Previously in this case, coverage was measured for all files in the virtual env for the reason described in the previous paragraph. This commit changes the code to collect all configured source directories inside third-party locations and disable coverage for code in third-party locations only if its not in one of these collected source directories. | ||||
* | fix: make tracing messages easier to understand | Ned Batchelder | 2023-01-22 | 1 | -2/+2 |
| | |||||
* | style: use good style for annotated defaults parameters | Ned Batchelder | 2023-01-05 | 1 | -2/+2 |
| | |||||
* | style: better | Ned Batchelder | 2023-01-02 | 1 | -1/+1 |
| | |||||
* | mypy: check collector.py and plugin_support.py | Ned Batchelder | 2023-01-01 | 1 | -5/+7 |
| | |||||
* | mypy: add env.py | Ned Batchelder | 2022-12-31 | 1 | -3/+3 |
| | |||||
* | refactor: removed mentions of Jython and IronPython | Ned Batchelder | 2022-12-30 | 1 | -8/+0 |
| | |||||
* | mypy: inorout.py, disposition.py, and part of control.py | Ned Batchelder | 2022-12-30 | 1 | -74/+76 |
| | |||||
* | test: remove pycontracts | Ned Batchelder | 2022-12-25 | 1 | -9/+0 |
| | |||||
* | style: fix spelling | Ned Batchelder | 2022-11-28 | 1 | -1/+1 |
| | | | | un-executed, white space, time stamp. | ||||
* | feat: added support for finding unexecuted namespace packages (#1387) | Felix Horvat | 2022-11-17 | 1 | -2/+6 |
| | | | | | | | | | | | | | | | | | | | * add support for namespace packages * fixed typo * update documentation * fixed lint issues * changed versionadded * convert to config setting * removed pure formatting changes * code review changes Co-authored-by: Ned Batchelder <ned@nedbatchelder.com> | ||||
* | fix: use glob matching instead of fnmatch. #1407 | Ned Batchelder | 2022-10-30 | 1 | -3/+3 |
| | | | | | | | I didn't understand that fnmatch considers the entire string to be a filename, even if it has slashes in it. This led to incorrect matching. Now we use our own implementation of glob matching to get the correct behavior. | ||||
* | style: parens should indent the same as their opening line | Ned Batchelder | 2022-05-01 | 1 | -1/+1 |
| | |||||
* | refactor: no need to special-case spec.origin == "namespace" | Ned Batchelder | 2022-01-03 | 1 | -2/+1 |
| | | | | | Namespace packages used to have this value, but that was changed in 3.7: https://bugs.python.org/issue32305 | ||||
* | test(fix): keep SourceIncludeOmitTest's from clobbering each other | Ned Batchelder | 2021-11-24 | 1 | -0/+3 |
| | | | | | | | | Because they cd'd into a folder in the shared source tree, their data files would collide, leading to flaky tests. Also, add a check that the tests collected some data, and add sys.path to the debug=trace output. | ||||
* | refactor: specialize exceptions | Ned Batchelder | 2021-11-14 | 1 | -2/+2 |
| | | | | | | 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. | ||||
* | fix: suppress exceptions when finding source= modules. #1203 | Ned Batchelder | 2021-11-13 | 1 | -1/+1 |
| | |||||
* | refactor(test): don't even import contracts if not using PyContracts | Ned Batchelder | 2021-11-04 | 1 | -4/+5 |
| | | | | | | | | 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: don't warn about already imported files for namespace packages #888 | Ned Batchelder | 2021-10-31 | 1 | -0/+4 |
| | | | | Ignore namespace packages in the already-imported check. #888 | ||||
* | fix: avoid measuring generated code. #1160 | Ned Batchelder | 2021-10-18 | 1 | -0/+3 |
| | |||||
* | refactor: no need for specialized pyexpat code anymore | Ned Batchelder | 2021-10-18 | 1 | -5/+0 |
| | | | | | | | | The pyexpat bug that plagued us was fixed in Python 3.4: https://bugs.python.org/issue22462 We no longer need the code that adapted to it. The test will remain, couldn't hurt. | ||||
* | fix: source modules need to be re-imported. #1232 | Ned Batchelder | 2021-10-11 | 1 | -18/+20 |
| | |||||
* | fix: make third-party detection work with namespace packages. #1231 | Ned Batchelder | 2021-10-10 | 1 | -9/+32 |
| | |||||
* | style: use the official designation for utf-8 | Ned Batchelder | 2021-10-10 | 1 | -1/+1 |
| | | | | | Yes, this is completely unimportant. Don't ask me why I bothered, I'm not really sure. | ||||
* | fix: correct previous refactorings | Ned Batchelder | 2021-07-28 | 1 | -1/+1 |
| | | | | | 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 | 1 | -4/+3 |
| | |||||
* | feat: warnings are now real warnings | Ned Batchelder | 2021-05-30 | 1 | -8/+5 |
| | | | | | | 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. | ||||
* | refactor: move exceptions to their own module | Ned Batchelder | 2021-05-02 | 1 | -1/+1 |
| | |||||
* | refactor: pyupgrade --py36-plus coverage/*.py | Ned Batchelder | 2021-05-02 | 1 | -16/+14 |
| | |||||
* | refactor: move the remaining backward.py code, no more backward.py | Ned Batchelder | 2021-05-01 | 1 | -31/+9 |
| | |||||
* | refactor: remove yet more unneeded backward.py shims | Ned Batchelder | 2021-05-01 | 1 | -2/+2 |
| | | | | | | | | Gone are: - PYC_MAGIC_NUMBER - code_object - SimpleNamespace | ||||
* | fix: don't warn that dynamic plugins already imported their source files. #1150 | Ned Batchelder | 2021-05-01 | 1 | -0/+5 |
| | |||||
* | fix: restore metacov functioning | Ned Batchelder | 2021-04-11 | 1 | -2/+0 |
| | | | | | | | The check for coverage files inside the --source check disables our metacoverage. Removing it means that coverage files will still not be measured, but the reason will be given as "is third-party" rather than "is part of coverage.py," which is a small price to pay. | ||||
* | fix: don't measure third-party scriptsnedbat/bin-exclude | Ned Batchelder | 2021-04-11 | 1 | -14/+22 |
| | | | | | | This finishes the last bit of #905 Also includes tighter logging of the reason for not tracing modules. | ||||
* | debug: label each matcher with its role | Ned Batchelder | 2021-04-11 | 1 | -7/+7 |
| | |||||
* | fix: don't measure third-party packages | Ned Batchelder | 2021-04-10 | 1 | -9/+94 |
| | | | | | | | | | | | | Avoid measuring code located where third-party packages get installed. We have to take care to measure --source code even if it is installed in a third-party location. This also fixes #905, coverage generating warnings about coverage being imported when it will be measured. https://github.com/nedbat/coveragepy/issues/876 https://github.com/nedbat/coveragepy/issues/905 | ||||
* | refactor: move stdlib and coverage location logic into functions | Ned Batchelder | 2021-04-10 | 1 | -29/+41 |
| | |||||
* | fix: remove debugging code I checked in by accident | Ned Batchelder | 2021-03-19 | 1 | -3/+0 |
| | |||||
* | style: correct two recent lint faux pas | Ned Batchelder | 2021-03-18 | 1 | -0/+3 |
| | |||||
* | Create Way to force package even if filepath exists (#1026) | Thomas Grainger | 2020-09-12 | 1 | -0/+1 |
| | | | Fixes: #268 | ||||
* | More details on --source filtering | Ned Batchelder | 2020-06-29 | 1 | -9/+33 |
| | |||||
* | Don't trace non-encodable file names. #891 | Ned Batchelder | 2020-01-01 | 1 | -0/+6 |
| | |||||
* | A helper to get code objects | Ned Batchelder | 2019-12-02 | 1 | -5/+2 |
| | |||||
* | Correct some function names and docstrings. #843 | Ned Batchelder | 2019-09-09 | 1 | -8/+11 |
| | |||||
* | No need for format indexes (mostly) | Ned Batchelder | 2019-09-01 | 1 | -1/+1 |
| | |||||
* | Don't try to use PyPy 'filenames' like '<builtin>/lib_pypy/_structseq.py' | Ned Batchelder | 2018-11-25 | 1 | -2/+4 |
| | |||||
* | Update NOTICE link to GitHub. | Ned Batchelder | 2018-06-24 | 1 | -1/+1 |
| | |||||
* | Finish up the inorout docstrings | Ned Batchelder | 2018-03-13 | 1 | -2/+17 |
| |