aboutsummaryrefslogtreecommitdiffstats
path: root/merge_production_dotenvs_in_dotenv.py
diff options
context:
space:
mode:
authorMatthew Lemon <y@yulqen.org>2024-12-31 16:12:42 +0000
committerMatthew Lemon <y@yulqen.org>2024-12-31 16:12:42 +0000
commit38f02f15781eb251cfd94f6467d2fc8e7fdf9556 (patch)
tree1a8b680497238a46ecf47cb7dc17856f087dc878 /merge_production_dotenvs_in_dotenv.py
parentc74ea9e6b4af97be26029334868fa3264032c2d3 (diff)
More comprehensive cleanup and refactor
- **Removal of Unused Files and Directories:** Deleted multiple files and directories that were no longer in use, including configuration files (e.g., `.gitattributes`, `.gitlab-ci.yml`, Docker-related configurations, and documentation files). - **Script and Build Configuration Cleanup:** Removed deployment scripts and Dockerfiles that were outdated, redundant, or no longer aligned with current project requirements. - **Documentation Purge:** Cleared out the documentation directory, including various Sphinx configuration files and content, which are no longer deemed necessary for the project's current state. - **Localization Files Delete:** Removed translation files across multiple languages that were not in use, streamlining localization efforts. - **Test Files Deletion:** Cleaned up test-related files that had no relevance to the remaining codebase. This clean-up aims to enhance project clarity, reduce unnecessary clutter, and set the stage for a more efficient development environment moving forward.
Diffstat (limited to 'merge_production_dotenvs_in_dotenv.py')
-rw-r--r--merge_production_dotenvs_in_dotenv.py27
1 files changed, 0 insertions, 27 deletions
diff --git a/merge_production_dotenvs_in_dotenv.py b/merge_production_dotenvs_in_dotenv.py
deleted file mode 100644
index c83ed71..0000000
--- a/merge_production_dotenvs_in_dotenv.py
+++ /dev/null
@@ -1,27 +0,0 @@
-# ruff: noqa
-import os
-from collections.abc import Sequence
-from pathlib import Path
-
-BASE_DIR = Path(__file__).parent.resolve()
-PRODUCTION_DOTENVS_DIR = BASE_DIR / ".envs" / ".production"
-PRODUCTION_DOTENV_FILES = [
- PRODUCTION_DOTENVS_DIR / ".django",
- PRODUCTION_DOTENVS_DIR / ".postgres",
-]
-DOTENV_FILE = BASE_DIR / ".env"
-
-
-def merge(
- output_file: Path,
- files_to_merge: Sequence[Path],
-) -> None:
- merged_content = ""
- for merge_file in files_to_merge:
- merged_content += merge_file.read_text()
- merged_content += os.linesep
- output_file.write_text(merged_content)
-
-
-if __name__ == "__main__":
- merge(DOTENV_FILE, PRODUCTION_DOTENV_FILES)