chore: ignore all files with .db extensions in .gitignore (#1568)

* chore: ignore all files with .db extensions in .gitignore

* Fix unit tests for .gitignore
This commit is contained in:
mat-mil 2023-08-11 22:29:58 +02:00 committed by GitHub
parent 2fa087a0fa
commit fa1642fd6b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -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.

View File

@ -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__/
"""
)