[dts] Tooling for DTS

Owen Hilyard ohilyard at iol.unh.edu
Wed Aug 11 16:09:13 CEST 2021


The DTS working group has decided to move forward with black and pylama as
tooling for DTS CI.

On Wed, Jul 28, 2021 at 4:44 PM Owen Hilyard <ohilyard at iol.unh.edu> wrote:

> Hello everyone,
>
> During the DTS working group meeting, we discussed that it would be useful
> to have some automated tooling to help assist the maintainers. These tools
> must produce machine-readable output. There are a few categories that we
> would like to include.
>
> 1. Formatter
>
> The formatter should be capable of a strict reformatting to PEP8.
>
> 2. Linter
>
> We must be able to customize the output or suppress individual instances
> of an issue.
>
> 3. Misc Static Analysis
>
> Any other static analysis tools that may be useful.
>
> My personal recommendations:
>
> 1. black
>
> Black has the ability to parse the file before and after formatting and
> diff the ASTs, to ensure that no semantic changes occurred during
> formatting. This would probably be our safest bet since we can be confident
> that it won't break anything.
>
> 2. pylama
>
> This tool runs a superset of the analyzers run by Flake8
>
> I'd like to start by getting a list of candidates, then we can narrow down
> tools until we reach a final set of tools to run in CI for DTS.
>
> Owen Hilyard
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mails.dpdk.org/archives/dts/attachments/20210811/34f1c661/attachment.htm>


More information about the dts mailing list