diff --git a/.github/workflows/python-codestyle.yml b/.github/workflows/python-codestyle.yml index 5f96eaf..7c43401 100644 --- a/.github/workflows/python-codestyle.yml +++ b/.github/workflows/python-codestyle.yml @@ -5,7 +5,7 @@ on: types: [assigned, edited, opened, synchronize, reopened] jobs: - verify-commits: + check-python-code-style: runs-on: ubuntu-22.04 steps: - name: Checkout code diff --git a/pycode/another.py b/pycode/another.py new file mode 100644 index 0000000..57f6b87 --- /dev/null +++ b/pycode/another.py @@ -0,0 +1,16 @@ +# This program adds two numbers + +num1 = 1.5 +num2 = 6.3 + +# make a very long line to check if pycodestype can detect that... blah blaaaahhh blaahhhh blaaaaaaaaaaaaahhhhhhh blaaaaaaaaaaaahhhh blahhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh + +# Add two numbers +sum = num1 + num2 + +# Display the sum +print('The sum of {0} and {1} is {2}'.format(num1, num2, sum)) + +if sum: + print('The sum is not zeor\n') + diff --git a/pycode/main.py b/pycode/main.py index 57f6b87..9e7a213 100644 --- a/pycode/main.py +++ b/pycode/main.py @@ -3,7 +3,9 @@ num1 = 1.5 num2 = 6.3 -# make a very long line to check if pycodestype can detect that... blah blaaaahhh blaahhhh blaaaaaaaaaaaaahhhhhhh blaaaaaaaaaaaahhhh blahhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh +# make a very long line to check if pycodestype can detect that... +# blah blaaaahhh blaahhhh blaaaaaaaaaaaaahhhhhhh +# blaaaaaaaaaaaahhhh blahhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh # Add two numbers sum = num1 + num2 @@ -13,4 +15,8 @@ if sum: print('The sum is not zeor\n') +else: + print('The sum is zeor\n') +# The line of length 41 balahhhhhhhhhhhhhh +print('Done')