From fa1642fd6b54c023a7887953dd04669672889cd1 Mon Sep 17 00:00:00 2001 From: mat-mil <122483538+mat-mil@users.noreply.github.com> Date: Fri, 11 Aug 2023 22:29:58 +0200 Subject: [PATCH] chore: ignore all files with .db extensions in .gitignore (#1568) * chore: ignore all files with .db extensions in .gitignore * Fix unit tests for .gitignore --- reflex/constants.py | 2 +- tests/test_utils.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/reflex/constants.py b/reflex/constants.py index cab2de821..1080c7798 100644 --- a/reflex/constants.py +++ b/reflex/constants.py @@ -214,7 +214,7 @@ DEFAULT_META_LIST = [] # The gitignore file. GITIGNORE_FILE = ".gitignore" # Files to gitignore. -DEFAULT_GITIGNORE = {WEB_DIR, DB_NAME, "__pycache__/", "*.py[cod]"} +DEFAULT_GITIGNORE = {WEB_DIR, "*.db", "__pycache__/", "*.py[cod]"} # The name of the reflex config module. CONFIG_MODULE = "rxconfig" # The python config file. diff --git a/tests/test_utils.py b/tests/test_utils.py index adf2cc30d..765b3d239 100644 --- a/tests/test_utils.py +++ b/tests/test_utils.py @@ -481,7 +481,7 @@ def test_initialize_non_existent_gitignore(tmp_path, mocker, gitignore_exists): if gitignore_exists: gitignore_file.touch() gitignore_file.write_text( - """reflex.db + """*.db __pycache__/ """ )