[dts] Tooling for DTS
Owen Hilyard
ohilyard at iol.unh.edu
Wed Jul 28 22:44:29 CEST 2021
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/20210728/86dae4fe/attachment.htm>
More information about the dts
mailing list