Closed MinchinWeb closed 6 years ago
Curious why you're using "single-item tuple" style lists here? (i.e. ['foo', ]
instead of ['foo']
) - it's not standard style. Dunno if a linter would complain about it but I would if I was a linter :D
Also, if you could add an integration test for this (there's existing ones for "use a different filename" for example) that'd be rad!
Besides that, the above nitpick, and the line comment I left, looks good - thanks!
I'm not sure where I picked up the "simple-item tuple"-style lists. Probably something wasn't turning into a list like I was wanting it to, so I made it a little more explicit. In any case, the code here as been updated to pass the linter :D
I added an integration test. That turned out to be at least twice as hard as adding the functionality in the first place. The biggest stumbling block proved to be that I couldn't figure out how to pass a python list via the command-line, so I had to set up the integration tests to accept an alternate configuration file and not to pass the -D
option. But everything is working now!
Huh, weird - not sure offhand why that was necessary, typically just "another directory w/ docs and conf.py" is enough! I might poke when I merge, but otherwise, glad you got it working :)
Merging this now and oh no, the integration test is actually a false positive 😆 it only runs the 1st ('A') changelog; the 2nd is not actually built or run. Wish I'd noticed this before spending 15 minutes tearing my hair out over why a sanity 'break' of the B changelog was not resulting in a test failure...
(FTR I am working on that and any other necessary fixes on my end.)
Solved that, made tweaks, applied to my real world use case, seems to work! Merged, will release as 1.5.0 soon.
Fixes #59