graingert-coef
graingert-coef
see also https://github.com/python/cpython/issues/90817
@lzchen I'm using this on Python 3.11
> Do you have an idea when you want to release a new version containing this fix? it looks like https://github.com/plotly/dash/pull/1779 was released in v2.1.0
@alexcjohnson since this issue was opened Python 3.11 and Python 3.12 have been released - and dash projects should drop Python 3.6 and 3.7 - which versions do you want...
@jcoombes I think this is done now, see https://github.com/CoefficientSystems/modern-data-cookiecutter/pull/220
@john-sandall do you want this with https://github.com/typeddjango/django-stubs configured?
the problem seems to be related to the fact that you end up with `['coverage_test', 'coverage_test']` in `self.source_pkgs_unmatched` and coverage only removes on instance of it https://github.com/nedbat/coveragepy/blob/fb2b49fb1beb810c6d7ee1cfbbf75a3ff8574fbf/coverage/inorout.py#L199
according to this https://github.com/pytest-dev/pytest-cov/blob/76fe2a7e48e5c9c53644994c5ba5a421c84286f5/src/pytest_cov/plugin.py#L91-L92 I can set --cov= but that also results in a warning: https://github.com/graingert-coef/coverage-test/pull/1/files#diff-50c86b7ed8ac2cf95bd48334961bf0530cdc77b5a56f852c5c61b89d735fd711R25 https://github.com/graingert-coef/coverage-test/actions/runs/11384119440/job/31671155042?pr=1#step:4:33 in this case you end up with `['', 'coverage_test']` in `self.source_pkgs_unmatched`
If I set `"--cov",` this works fine - but then running `pipx run tox -- src/coverage_test/tests/test_app.py` the `--cov` consumes the path arg and I get `CoverageWarning: Module src/coverage_test/tests/test_app.py was never...
closed in https://github.com/CoefficientSystems/modern-data-cookiecutter/pull/220