kzbin.info/www/bejne/m4KwZIeFn9iAlbM: Do have an example for that, @anthonywritescode ?
@l4m52 жыл бұрын
please would you mind going over the extension part of coverage "ctracer/"
@anthonywritescode2 жыл бұрын
anything specific? as I said in the video it's basically a settrace handler
@mfeickert072 жыл бұрын
Do you have a "anthony explains" video about packaging monorepos? I thought you did, but when checking the explains repo I don't see anything from a quick ctrl+f. Some people in my org are moving from "one repo per micro service to a single repo with each service as a subdirectory" and are struggling a bit, so I was hoping to send them a video.
@anthonywritescode2 жыл бұрын
heh, I don't really like monorepos personally and haven't worked in a place where they went well -- I have a video about all-repos (was given as a talk) which is sorta the opposite (how I manage many-repos)
@mfeickert072 жыл бұрын
@@anthonywritescode Yeah I don't use monorepos either, for what I assume are similar reasons to you. But I figured as you've shown multiple ways of doing things on the channel before, some of them you warn in the video that you don't like or don't personally use, that I'd check if I had missed it somewhere. Thanks for verifying I didn't!
@jfk13372 жыл бұрын
Hi anthony do you know about hatch from pypa? Is this an alternative to use for poetry?
@anthonywritescode2 жыл бұрын
I know it exists, but I don't know whether it's good or not because I have not tried it
@ilyalalala76552 ай бұрын
Hey great video! I actually have a Q: I have a project with python 3.9 and wanted to update it to 3.12 After I bump my version to 3.10 everything seems to be fine, but for 3.11 and 3.12 coverage is starting to decrease (95% with 3.11 and 92% with 3.12). What could be the origin of such weird behavior?
@anthonywritescode2 ай бұрын
impossible to know without seeing the code and what things are uncovered
@ilyalalala7655Ай бұрын
Long story short: Along with updating python coverage also should be updated 😅
@yudhiesh19972 жыл бұрын
Do you know how to generate coverage reports for cookie cutter templates?
@anthonywritescode2 жыл бұрын
I'm not sure what you mean? are you testing a template or are you looking to template a way to get reports?
@yudhiesh19972 жыл бұрын
@@anthonywritescode oops sorry, I’m testing a template.
@anthonywritescode2 жыл бұрын
I'm not sure code coverage really applies there? it's just codegen right?
@bhaveshverma86292 жыл бұрын
Woh nice one. I also learn even i am not from Python background
@amir.hessam2 жыл бұрын
@anthonywritescode is there any specific reason not using `pytest-cov` plugin which is essentially using `coverage` in the back? just wondering your thoughts. I personally use it as `python -m pytest --cov=src --cov-report=term --cov-report=html --cov-report=xml --cov-config=.coveragerc --tb=short -ra -v` in one line
@anthonywritescode2 жыл бұрын
I've got another video recorded about why I don't use pytest-cov -- the tl;dr is it's fragile and you don't need it and doing everything "in one line" to me is a big minus rather than a plus
@lycantropos2 жыл бұрын
from my experience explicitly calling coverage (with all options available) is better than having it turned on implicitly on each test run, also tests debugging in my IDE-of-choice (PyCharm) didn't work well with `pytest-cov` some time ago, don't know about current state of things
@jhg129892 жыл бұрын
@@anthonywritescode What's the other recorded video? Has it been released yet? ;()