Skip to content

Commit

Permalink
chore: Document noqa usage
Browse files Browse the repository at this point in the history
  • Loading branch information
jpmckinney committed Sep 15, 2024
1 parent 0b001ec commit 0a098be
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@ def cli_input_json(name: str, file: typer.FileText) -> None:

# https://typer.tiangolo.com/tutorial/commands/callback/
@app.callback()
def cli(*, quiet: bool = typer.Option(False, "--quiet", "-q")) -> None: # noqa: FBT003
def cli(*, quiet: bool = typer.Option(False, "--quiet", "-q")) -> None: # noqa: FBT003 # false positive
if quiet:
state["quiet"] = True

Expand Down
2 changes: 1 addition & 1 deletion app/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class ApplicationResponse(BaseModel):
award: models.Award # IAward
lender: models.Lender | None = None # ILender
documents: list[models.BorrowerDocumentBase] = Field(default_factory=list) # IBorrowerDocument
creditProduct: models.CreditProduct | None = None # ICreditProduct # noqa: N815
creditProduct: models.CreditProduct | None = None # ICreditProduct # noqa: N815 # backwards-compatibility


class CreditProductListResponse(BaseModel):
Expand Down

0 comments on commit 0a098be

Please sign in to comment.