Skip to content

Commit 223adc7

Browse files
authored
feat: add a failing test fixture for linting
1 parent 927be10 commit 223adc7

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# test_fail.py
2+
import sys # Flake8 Error: 'sys' imported but unused
3+
import os
4+
5+
def calculate_square (number): # Flake8 Error: extra space before opening parenthesis
6+
7+
result=number*number # Flake8 Error: missing whitespace around operator '='
8+
print('The result is: ' + str(result)) # Black will want to change single quotes to double quotes
9+
return result
10+
11+
# Intentional trailing whitespace on the line below to trigger Flake8

0 commit comments

Comments
 (0)