ironic.hacking.checks module

ironic.hacking.checks module

ironic.hacking.checks.check_explicit_underscore_import(logical_line, filename)[source]

Check for explicit import of the _ function

We need to ensure that any files that are using the _() function to translate logs are explicitly importing the _ function. We can’t trust unit test to catch whether the import has been added so we need to check for it here.

ironic.hacking.checks.factory(register)[source]
Creative Commons Attribution 3.0 License

Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.