Skip to content

Commit

Permalink
refactor: pre-commit.ci auto fix
Browse files Browse the repository at this point in the history
  • Loading branch information
pre-commit-ci[bot] committed Jul 25, 2024
1 parent e849165 commit fc90330
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 18 deletions.
22 changes: 12 additions & 10 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,18 +1,20 @@
[build-system]
build-backend = "poetry.core.masonry.api"
requires = ["poetry-core>=1"]
requires = [
"poetry-core>=1",
]

[tool.poetry]
name = "heartbeat"
packages = [{ include = "api", from = "src" }]
packages = [ { include = "api", from = "src" } ]
version = "0.2.0"
description = "A heart failure detection system"
readme = "README.md"
authors = ["Vassilis Sioros <[email protected]>"]
authors = [ "Vassilis Sioros <[email protected]>" ]
license = "MIT"
homepage = "https://billsioros.github.io/heartbeat"
repository = "https://github.com/billsioros/heartbeat"
keywords = []
keywords = [ ]
classifiers = [
"Programming Language :: Python",
"Programming Language :: Python :: 3",
Expand Down Expand Up @@ -119,7 +121,7 @@ select = [
"UP",
"YTT",
]
ignore = []
ignore = [ ]

fixable = [
"A",
Expand Down Expand Up @@ -167,7 +169,7 @@ fixable = [
"UP",
"YTT",
]
unfixable = []
unfixable = [ ]

per-file-ignores = {}

Expand All @@ -180,12 +182,12 @@ pydocstyle.convention = "google"
[tool.docformatter]
black = true
non-strict = true
non-cap = ["heartbeat"]
non-cap = [ "heartbeat" ]
recursive = true
in-place = true

[tool.mypy]
files = ["src/api"]
files = [ "src/api" ]
warn_unused_configs = true
warn_return_any = true
ignore_missing_imports = true
Expand All @@ -204,7 +206,7 @@ upload_to_pypi = false

[tool.vulture]
min_confidence = 95
paths = ["src/api"]
paths = [ "src/api" ]

[tool.poe.tasks]

Expand Down Expand Up @@ -234,4 +236,4 @@ cmd = "poetry run manage"

[tool.bandit]
recursive = true
exclude_dirs = ["tests"]
exclude_dirs = [ "tests" ]
2 changes: 1 addition & 1 deletion src/api/models/heartbeat.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class HeartBeatModel(PkModel):
cholesterol: Mapped[int] = Column(Integer, nullable=False)
fasting_blood_sugar: Mapped[bool] = Column(Boolean, nullable=False)
resting_electrocardiogram: Mapped[RestingElectrocardiogram] = Column(
Enum(RestingElectrocardiogram), nullable=False
Enum(RestingElectrocardiogram), nullable=False,
)
max_heart_rate: Mapped[int] = Column(Integer, nullable=False)
exercise_angina: Mapped[bool] = Column(Boolean, nullable=False)
Expand Down
6 changes: 3 additions & 3 deletions src/api/schemas/heartbeat.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ class Config:
sex: Sex
chest_pain_type: ChestPain
resting_blood_pressure: int = Field(
..., ge=0, le=250, description="Resting blood pressure [mm Hg]"
..., ge=0, le=250, description="Resting blood pressure [mm Hg]",
)
cholesterol: int = Field(..., ge=0, le=700, description="Serum cholesterol [mm/dl]")
fasting_blood_sugar: bool = Field(
..., description="Fasting blood sugar [1: if FastingBS > 120 mg/dl, 0: otherwise]"
..., description="Fasting blood sugar [1: if FastingBS > 120 mg/dl, 0: otherwise]",
)
resting_electrocardiogram: RestingElectrocardiogram
max_heart_rate: int = Field(
Expand All @@ -31,7 +31,7 @@ class Config:
)
exercise_angina: bool
old_peak: float = Field(
..., ge=-10, le=10, description="Oldpeak = ST [Numeric value measured in depression]"
..., ge=-10, le=10, description="Oldpeak = ST [Numeric value measured in depression]",
)
st_slope: StSlope

Expand Down
2 changes: 1 addition & 1 deletion src/web/.prettierrc
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@
"jsxBracketSameLine": true,
"arrowParens": "avoid",
"endOfLine": "auto"
}
}
2 changes: 1 addition & 1 deletion src/web/public/heartbeat.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/web/src/assets/heartbeat.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/web/src/providers/SnackbarProvider.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export default function SnackbarProvider({ children }) {
<Snackbar
severity={alert.severity}
message={alert.message}

/>
) : null}
</SnackbarContext.Provider>
Expand Down

0 comments on commit fc90330

Please sign in to comment.