Description:
Running 'flake8' command indicates issues in models.py script. Specifically regarding the formatting of the script, for example amounts of blank spaces and positions of commas.
Steps to reproduce:
Running the 'flake8' command on the main branch. Specifically, with the models.py script as:
def SIR(Y, r, a):
S, I, R = Y
return [-r*I*S,r*I*S - a*I, a*I]
def Brusselator(Y, a, b):
x, y = Y
return np.array([a + x**2*y - b*x -x, b*x - x**2*y])
Expected behaviour:
I would expect the command to not produce issues with the models.py script.
Error message:
./source/models.py:3:1: E302 expected 2 blank lines, found 1
./source/models.py:5:19: E231 missing whitespace after ','
./source/models.py:7:1: E302 expected 2 blank lines, found 1
./source/models.py:9:40: E225 missing whitespace around operator
Environment:
Python version: 3.10.13
OS: Mac Sonoma 14.0
Description: Running 'flake8' command indicates issues in models.py script. Specifically regarding the formatting of the script, for example amounts of blank spaces and positions of commas.
Steps to reproduce: Running the 'flake8' command on the main branch. Specifically, with the models.py script as:
Expected behaviour: I would expect the command to not produce issues with the models.py script.
Error message: ./source/models.py:3:1: E302 expected 2 blank lines, found 1 ./source/models.py:5:19: E231 missing whitespace after ',' ./source/models.py:7:1: E302 expected 2 blank lines, found 1 ./source/models.py:9:40: E225 missing whitespace around operator
Environment: Python version: 3.10.13 OS: Mac Sonoma 14.0