Uploaded image for project: 'VNF Validation Program'
  1. VNF Validation Program
  2. VVP-203

Adopt Black Code Formatter

XMLWordPrintable

    • Icon: Story Story
    • Resolution: Done
    • Icon: Medium Medium
    • El Alto Release
    • None
    • VVP- El Alto 5, VVP- El Alto 6

      In an effort to drive a consistent code style, the proposal is to adopt black https://black.readthedocs.io/en/stable/, and let it automatically format the code.

      This will ensure that all contributions adhere to the same coding conventions, and reduce the liklihood of flake8 errors related to code format that occasionally cause verify and build jobs to fail.

      Tasks:

      • Update documentation to reflect Black usage
      • Add pre-commit hook to trigger black before commit (flake8 can also be added a pre-commit hook as well)
      • Update flake8 rules to to be compatible with Black

            tl2972 tl2972
            tl2972 tl2972
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: