Georgia Garcia
cec9ae6dff
utils: fix coding style to match PEP8
...
Annotate exceptions with ' # noqa: ERROR'
Signed-off-by: Georgia Garcia <georgia.garcia@canonical.com>
2024-05-20 13:56:37 -03:00
Mark Grassi
844a4dc393
Change string formatting method in Python tests
2023-02-19 16:54:38 -05:00
Mark Grassi
852169948f
Make BaseRule a proper abstract base class
2022-11-13 19:32:01 -05:00
Mark Grassi
accc2debe9
Rename BaseRule's parse() method to create_instance()
2022-09-10 19:54:35 -04:00
Mark Grassi
c57138f255
Order imports and module-level dunder name assignments.
2022-08-21 11:15:07 -04:00
Mark Grassi
96f7121944
Fix most PEP 8 whitespace, indentation, and major line length violations.
2022-08-21 11:15:07 -04:00
Mark Grassi
7581c9e113
Speed up list creations, and change lists to tuples where appropriate..
2022-06-26 22:18:56 -04:00
Christian Boltz
4c77f7193b
Use parse() instead of _parse() in LogprofHeaderTest
...
The *LogprofHeaderTest accidently used the private _parse() insteaf of
the official parse().
2021-03-07 18:28:27 +01:00
Christian Boltz
3f11eebc17
Add BooleanRule and BooleanRuleset
...
These two classes are meant to handle the definition of boolean rules
like `$foo = true`.
Also extend RE_PROFILE_BOOLEAN to provide named matches.
As usual, add tests for the new classes.
2020-12-25 18:03:33 +01:00