Skip to content

Commit

Permalink
Pylint and other clean ups
Browse files Browse the repository at this point in the history
Clean ups include ensuring empty line at end of all files. Adding
__init__.py to make /src a regular package instead of a namespace
package.
  • Loading branch information
Sahar committed May 2, 2024
1 parent 3132023 commit 03a5856
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion backend/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -150,4 +150,4 @@ dmypy.json
.pytype/

# Cython debug symbols
cython_debug/
cython_debug/
5 changes: 5 additions & 0 deletions backend/.pylintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[MESSAGES CONTROL]
disable=missing-module-docstring,
missing-function-docstring,
missing-class-docstring,
fixme
2 changes: 1 addition & 1 deletion backend/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
fastapi==0.110.3
sqlmodel==0.0.18
uvicorn[standard]==0.29.0
uvicorn[standard]==0.29.0
Empty file added backend/src/__init__.py
Empty file.
2 changes: 1 addition & 1 deletion backend/src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
engine = create_engine("sqlite://")

@asynccontextmanager
async def lifespan(app: FastAPI):
async def lifespan(application: FastAPI):
SQLModel.metadata.create_all(engine)
yield
SQLModel.metadata.drop_all(engine)
Expand Down

0 comments on commit 03a5856

Please sign in to comment.