Uploaded image for project: 'Data Collection, Analytics, and Events'
  1. Data Collection, Analytics, and Events
  2. DCAEGEN2-2994

formatting and pylint checking tools integration (pilot)

XMLWordPrintable

    • formatting and pylint checking tools integration

      Black formatting and pylint checking tools on python code

      1. Apply the "black" tool to some trial repos. It standardizes the formatting of python code.
       
      See https://github.com/psf/black for information on the tool. To install it, use

      pip3 install black

      To run it, use

      black directory-or-filename . . .

      or

      python3 -m black directory-or-filename . . .

       

      2. Modify the build process to invoke "black --check" as a pre-check.

       

      3. Apply the pylint tool as well. Get the code to pass with a code of 10.0/10.0

       

      4. Modify the build process to invoke pylint as a pre-check.

            vv770d vv770d
            tonylhansen tonylhansen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: