Skip to content

Commit

Permalink
add noqa + newline after docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
0dm committed Jun 16, 2023
1 parent ab0c6b3 commit 482ab56
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 1 addition & 2 deletions openadapt/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,7 @@ def getenv_fallback(var_name):
locals()[key] = val

ROOT_DIRPATH = pathlib.Path(__file__).parent.parent.resolve()
DB_FNAME = getenv_fallback("DB_FNAME")
DB_FPATH = ROOT_DIRPATH / DB_FNAME
DB_FPATH = ROOT_DIRPATH / DB_FNAME # type: ignore # noqa
DB_URL = f"sqlite:///{DB_FPATH}"
DIRNAME_PERFORMANCE_PLOTS = "performance"

Expand Down
1 change: 1 addition & 0 deletions openadapt/scripts/reset_db.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ def reset_db():
The function clears the database by removing the database file and running a
database migration using Alembic.
"""

if os.path.exists(config.DB_FPATH):
os.remove(config.DB_FPATH)

Expand Down

0 comments on commit 482ab56

Please sign in to comment.