Skip to content
Snippets Groups Projects
  • Otto Kekäläinen's avatar
    83d80a99
    Fix Python formatting to adhere to devscripts requirements · 83d80a99
    Otto Kekäläinen authored and Holger Levsen's avatar Holger Levsen committed
    
    Fix the following issues:
    
        AssertionError: pylint found issues:
        ************* Module deb-check-missing-breaks-replaces-conflicts
        :1:0: C0103: Module name "deb-check-missing-breaks-replaces-conflicts" doesn't conform to snake_case naming style (invalid-name)
        :35:0: R0402: Use 'from debian import deb822' instead (consider-using-from-import)
        :36:0: R0402: Use 'from debian import debfile' instead (consider-using-from-import)
        :37:0: R0402: Use 'from debian import debian_support' instead (consider-using-from-import)
        :39:0: E0401: Unable to import 'junit_xml' (import-error)
        :85:16: C0209: Formatting a regular string which could be an f-string (consider-using-f-string)
        :99:0: R0914: Too many local variables (18/15) (too-many-locals)
        :107:8: W1202: Use lazy % formatting in logging functions (logging-format-interpolation)
        :107:8: C0209: Formatting a regular string which could be an f-string (consider-using-f-string)
        :124:24: W1510: 'subprocess.run' used without explicitly defining the value for 'check'. (subprocess-run-check)
        :143:14: C0209: Formatting a regular string which could be an f-string (consider-using-f-string)
        :172:9: W1514: Using open without explicitly specifying an encoding (unspecified-encoding)
        :181:9: W1514: Using open without explicitly specifying an encoding (unspecified-encoding)
    
    Signed-off-by: default avatarHolger Levsen <holger@layer-acht.org>
    83d80a99
    History
    Fix Python formatting to adhere to devscripts requirements
    Otto Kekäläinen authored and Holger Levsen's avatar Holger Levsen committed
    
    Fix the following issues:
    
        AssertionError: pylint found issues:
        ************* Module deb-check-missing-breaks-replaces-conflicts
        :1:0: C0103: Module name "deb-check-missing-breaks-replaces-conflicts" doesn't conform to snake_case naming style (invalid-name)
        :35:0: R0402: Use 'from debian import deb822' instead (consider-using-from-import)
        :36:0: R0402: Use 'from debian import debfile' instead (consider-using-from-import)
        :37:0: R0402: Use 'from debian import debian_support' instead (consider-using-from-import)
        :39:0: E0401: Unable to import 'junit_xml' (import-error)
        :85:16: C0209: Formatting a regular string which could be an f-string (consider-using-f-string)
        :99:0: R0914: Too many local variables (18/15) (too-many-locals)
        :107:8: W1202: Use lazy % formatting in logging functions (logging-format-interpolation)
        :107:8: C0209: Formatting a regular string which could be an f-string (consider-using-f-string)
        :124:24: W1510: 'subprocess.run' used without explicitly defining the value for 'check'. (subprocess-run-check)
        :143:14: C0209: Formatting a regular string which could be an f-string (consider-using-f-string)
        :172:9: W1514: Using open without explicitly specifying an encoding (unspecified-encoding)
        :181:9: W1514: Using open without explicitly specifying an encoding (unspecified-encoding)
    
    Signed-off-by: default avatarHolger Levsen <holger@layer-acht.org>