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:
parent
2fa087a0fa
commit
fa1642fd6b
@ -214,7 +214,7 @@ DEFAULT_META_LIST = []
|
|||||||
# The gitignore file.
|
# The gitignore file.
|
||||||
GITIGNORE_FILE = ".gitignore"
|
GITIGNORE_FILE = ".gitignore"
|
||||||
# Files to 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.
|
# The name of the reflex config module.
|
||||||
CONFIG_MODULE = "rxconfig"
|
CONFIG_MODULE = "rxconfig"
|
||||||
# The python config file.
|
# The python config file.
|
||||||
|
@ -481,7 +481,7 @@ def test_initialize_non_existent_gitignore(tmp_path, mocker, gitignore_exists):
|
|||||||
if gitignore_exists:
|
if gitignore_exists:
|
||||||
gitignore_file.touch()
|
gitignore_file.touch()
|
||||||
gitignore_file.write_text(
|
gitignore_file.write_text(
|
||||||
"""reflex.db
|
"""*.db
|
||||||
__pycache__/
|
__pycache__/
|
||||||
"""
|
"""
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user