Diff Quality

Quality Report: pycodestyle

Diff: origin/main...HEAD, staged and unstaged changes

Source File Diff Quality (%) Lines in violation
violations_test_file.py 66.7%
  • 2: E225 missing whitespace around operator
  • 6: E302 expected 2 blank lines, found 0
  • 11: E225 missing whitespace around operator
violations_test_file.py
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
def func_1(apple, my_list):
    if apple<10:
        # Do something 
        my_list.append(apple)
    return my_list[1:]
def func_2(spongebob, squarepants):
    """A less messy function"""
    for char in spongebob:
        if char in squarepants:
            return char
    unused=1
    return None