Current backend/ folder needs some cleaning up. Here's the output from flake8:
./app/server/app.py:18:1: E303 too many blank lines (3)
./app/server/controllers/post.py:60:80: E501 line too long (84 > 79 characters)
./app/server/controllers/auth.py:3:1: F401 'pydantic.BaseModel' imported but unused
./app/server/controllers/auth.py:4:1: F401 'typing.Optional' imported but unused
./app/server/controllers/auth.py:6:80: E501 line too long (90 > 79 characters)
./app/server/controllers/auth.py:6:80: E231 missing whitespace after ','
./app/server/controllers/auth.py:7:1: F401 'fastapi.Depends' imported but unused
./app/server/controllers/auth.py:7:1: F401 'fastapi.FastAPI' imported but unused
./app/server/controllers/auth.py:7:1: F401 'fastapi.status' imported but unused
./app/server/controllers/auth.py:8:33: E231 missing whitespace after ','
./app/server/controllers/auth.py:10:7: E225 missing whitespace around operator
./app/server/controllers/auth.py:11:1: E302 expected 2 blank lines, found 0
./app/server/controllers/auth.py:19:1: W293 blank line contains whitespace
./app/server/controllers/auth.py:22:1: W293 blank line contains whitespace
./app/server/controllers/auth.py:23:5: E265 block comment should start with '# '
./app/server/controllers/auth.py:26:18: E203 whitespace before ':'
./app/server/controllers/auth.py:26:80: E501 line too long (94 > 79 characters)
./app/server/controllers/auth.py:27:18: E203 whitespace before ':'
./app/server/controllers/auth.py:34:1: W293 blank line contains whitespace
./app/server/controllers/auth.py:37:80: E501 line too long (95 > 79 characters)
./app/server/controllers/auth.py:40:80: E501 line too long (80 > 79 characters)
./app/server/controllers/auth.py:41:9: F841 local variable 'e' is assigned to but never used
./app/server/controllers/auth.py:44:1: W293 blank line contains whitespace
./app/server/controllers/auth.py:45:5: E303 too many blank lines (2)
./app/server/controllers/auth.py:45:80: E501 line too long (84 > 79 characters)
./app/server/controllers/auth.py:46:51: W291 trailing whitespace
./app/server/controllers/auth.py:48:1: E305 expected 2 blank lines after class or function definition, found 1
./app/server/controllers/auth.py:48:29: W292 no newline at end of file
./app/server/controllers/user.py:3:1: F401 'passlib.context.CryptContext' imported but unused
./app/server/controllers/user.py:4:1: F401 'fastapi.Depends' imported but unused
./app/server/controllers/user.py:4:34: E231 missing whitespace after ','
./app/server/controllers/user.py:4:41: E231 missing whitespace after ','
./app/server/controllers/user.py:9:1: E302 expected 2 blank lines, found 1
./app/server/controllers/user.py:12:15: E203 whitespace before ':'
./app/server/controllers/user.py:29:48: E231 missing whitespace after ':'
./app/server/controllers/user.py:30:80: E501 line too long (92 > 79 characters)
./app/server/controllers/user.py:38:1: E302 expected 2 blank lines, found 1
./app/server/controllers/user.py:39:55: E231 missing whitespace after ':'
./app/server/controllers/user.py:40:80: E501 line too long (107 > 79 characters)
./app/server/controllers/user.py:41:80: E501 line too long (99 > 79 characters)
./app/server/controllers/user.py:46:1: E302 expected 2 blank lines, found 1
./app/server/controllers/user.py:57:52: E231 missing whitespace after ':'
./app/server/routes/posts.py:8:80: E501 line too long (80 > 79 characters)
./app/server/routes/post.py:20:1: E302 expected 2 blank lines, found 1
./app/server/routes/post.py:21:80: E501 line too long (103 > 79 characters)
./app/server/routes/post.py:28:80: E501 line too long (90 > 79 characters)
./app/server/routes/post.py:34:80: E501 line too long (133 > 79 characters)
./app/server/routes/post.py:46:80: E501 line too long (82 > 79 characters)
./app/server/routes/user.py:3:1: F401 'fastapi.security.OAuth2PasswordRequestForm' imported but unused
./app/server/routes/user.py:3:50: E231 missing whitespace after ','
./app/server/routes/user.py:9:17: W291 trailing whitespace
./app/server/routes/user.py:22:1: E302 expected 2 blank lines, found 1
./app/server/routes/user.py:22:80: E501 line too long (120 > 79 characters)
./app/server/routes/user.py:28:1: E302 expected 2 blank lines, found 1
./app/server/routes/user.py:28:80: E501 line too long (111 > 79 characters)
./app/server/routes/user.py:32:40: E231 missing whitespace after ','
./app/server/routes/user.py:34:1: E302 expected 2 blank lines, found 1
./app/server/routes/user.py:41:80: E501 line too long (119 > 79 characters)
./app/server/routes/user.py:46:1: E302 expected 2 blank lines, found 1
./app/server/routes/user.py:46:80: E501 line too long (82 > 79 characters)
./app/server/models/post.py:30:5: E303 too many blank lines (2)
./app/server/models/user.py:4:1: E302 expected 2 blank lines, found 1
./app/server/models/user.py:14:23: E203 whitespace before ':'
./app/server/models/user.py:22:1: E302 expected 2 blank lines, found 1
./app/server/models/user.py:29:24: E203 whitespace before ':'
./app/server/models/user.py:30:27: E203 whitespace before ':'
./app/server/models/user.py:33:1: E302 expected 2 blank lines, found 0
./app/server/models/user.py:40:5: E303 too many blank lines (2)
./app/server/models/user.py:43:23: E203 whitespace before ':'
Current
backend/
folder needs some cleaning up. Here's the output fromflake8
: