This adds no new code linters or formatters, but ensures that flake8 (and some
minor others) are run using pre-commit.ci on each PR.
That's very fast and fixes problems in-PR, not requiring review turnarounds.
Additionally we get more stable linters via version pinning for free. The
updates are capped to once per month to prevent unnecessary churn.
Since flake8 now runs over the whole code base, I've added a few noqas where it
made sense.
* ENH: Add no bullet point option
When `all_bullets` is set to false, then fragmets that should be
rendered as bullet points will have include the bullet itself.
In that case, bullets will be sorted to the front (bullets include
"*", "-", and "#." enumeration).
To make indentation of the ticket info easier, a `get_indent(text)`
function is exposed to the jinja template.
* testing and cleanups
Instead of having a single 'towncrier' command, add 'build' and 'check'
subcommands. The 'click-default-group' extension is used to allow us to
continue running the 'build' command by default, though we should look
at deprecating this in the future.
Signed-off-by: Stephen Finucane <stephen@that.guru>
Closes: #144
For now, this simply lets us run the build command in the same way we
run the check command, namely:
$ python -m towncrier.build
However, it will let us do far more powerful stuff shortly.
Signed-off-by: Stephen Finucane <stephen@that.guru>