Tag rules and CLI improvements


Rule tags

Rules can now be tagged by adding a tags key. Then you can include these tags from the CLI to choose a subset of rules to run.

This makes it easy to specify which rules you want to run in CI. First add a tag to the rules you want:

rules:
    - id: important-rule
      tags:
          - ci
      pattern: "..."

Then run the ci tag with sourcery review --include ci .

Set up Sourcery in pre-commit and CI

It is now much easier to configure Sourcery to run in pre-commit or CI. Run:

Full changelog

Added

Changed