Skip to content

Commit e62bece

Browse files
fix: remove unused imports and trailing blank lines
1 parent 1b2e6b8 commit e62bece

11 files changed

Lines changed: 15 additions & 9 deletions

File tree

$f

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
""

app/auth.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,4 +53,4 @@ def get_current_user(token: str = Depends(oauth2_scheme)):
5353
raise credentials_exception
5454
return username
5555
except JWTError:
56-
raise credentials_exception
56+
raise credentials_exception

app/cache.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,4 +65,4 @@ def redis_ping() -> bool:
6565
try:
6666
return client.ping()
6767
except Exception:
68-
return False
68+
return False

app/crud.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,4 +46,4 @@ def authenticate_user(db: Session, username: str, password: str):
4646
return None
4747
if not verify_password(password, user.hashed_password):
4848
return None
49-
return user
49+
return user

app/database.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@
1111

1212
engine = create_engine(DATABASE_URL, connect_args=connect_args)
1313
SessionLocal = sessionmaker(autocommit=False, autoflush=False, bind=engine)
14-
Base = declarative_base()
14+
Base = declarative_base()

app/logging_config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ def setup_logging(log_level: str = "INFO") -> None:
1111

1212

1313
def get_logger(name: str) -> logging.Logger:
14-
return logging.getLogger(name)
14+
return logging.getLogger(name)

app/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,4 +157,4 @@ def delete_item(
157157
if not deleted:
158158
raise HTTPException(status_code=404, detail="item not found")
159159
cache_delete(ITEMS_CACHE_KEY)
160-
logger.info("item deleted", extra={"item_id": item_id})
160+
logger.info("item deleted", extra={"item_id": item_id})

app/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@ class User(Base):
2020
username = Column(String, unique=True, nullable=False, index=True)
2121
hashed_password = Column(String, nullable=False)
2222
is_active = Column(Boolean, default=True)
23-
created_at = Column(DateTime(timezone=True), server_default=func.now())
23+
created_at = Column(DateTime(timezone=True), server_default=func.now())

app/schemas.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,4 @@ class UserOut(BaseModel):
3535

3636
class Token(BaseModel):
3737
access_token: str
38-
token_type: str
38+
token_type: str

app/tracing.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@
44

55

66
def setup_tracing(app, db_engine):
7-
logger.info("tracing configured (set OTEL_EXPORTER_OTLP_ENDPOINT to enable export)")
7+
logger.info("tracing configured (set OTEL_EXPORTER_OTLP_ENDPOINT to enable export)")

0 commit comments

Comments
 (0)