Coding 2022-07-10
I made some nice progress on writing, but I'm used to doing coding entries on the weekend, so let's talk about where I am with MOTR.
I wrote the first test of the pytest wrapper, which also represents a test of the python wrapper. Here's what's left to test, in approximate priority order:
- pyinstrument (I looked into some alternatives, and they weren't satisfactory; I may end up filing some bugs later, once I've closed out some issues on my end)
- coverage (including several output formats)
- limit-coverage
- Proper coverage of "build", which should be renamed to "pyproject_build", for both clarity and correctness
pyinstrument should be really straightforward, the rest, somewhat less so.
Now that I've done a few rounds of iteration on the existing wrappers, it might also make sense to revisit how I'm laying out these modules. I'll try to take some quick notes on that now...
- The python versions adaptor and the pip arguments label always accompany each other; this didn't use to be true, but I had to do some refactoring that made it true.
- Sometimes the Entry alias is used just a little, and sometimes it's used a little more.
- The Program subclass does not always accompany the adaptor and label.
- Some of these globals, like COMMAND, could be inlined without hurting anything.
- The BASE global looks like it should be possible to write a helper for.
- The python wrapper's base() function looks like a candidate for writing a helper function, but I'll need to compare it to the other runner wrappers' implementations, so I'll have to write them first.
- The flake8 wrapper has some options that should be replaced with a variadic function of extra dependencies.
- There are some issues with HTML_LABEL in the junit2html wrapper that indicate that I need to revisit the new LessFlexOut class.
- There are a variety of paired parametric_command.Put objects and Labels, and I should take another shot at unifying them.
Okay, that's a bunch of work that I can't prioritize right now. Tomorrow, hopefully. For now, it is late and I should sleep.
Good night.