From 939d80dad0037d7b7b4c631c8445f7b5f71bc665 Mon Sep 17 00:00:00 2001 From: oedokumaci Date: Sun, 11 Feb 2024 12:49:06 +0300 Subject: [PATCH] ci/cd: add data dir --- data/.gitignore | 4 ++++ src/template_python/path.py | 1 + tests/conftest.py | 6 +++--- 3 files changed, 8 insertions(+), 3 deletions(-) create mode 100644 data/.gitignore diff --git a/data/.gitignore b/data/.gitignore new file mode 100644 index 0000000..5e7d273 --- /dev/null +++ b/data/.gitignore @@ -0,0 +1,4 @@ +# Ignore everything in this directory +* +# Except this file +!.gitignore diff --git a/src/template_python/path.py b/src/template_python/path.py index e5dadc6..3c938cc 100644 --- a/src/template_python/path.py +++ b/src/template_python/path.py @@ -7,3 +7,4 @@ CONFIG_DIR: Path = ROOT_DIR / "config" LOGS_DIR: Path = ROOT_DIR / "logs" OUTPUTS_DIR: Path = ROOT_DIR / "outputs" +DATA_DIR: Path = ROOT_DIR / "data" diff --git a/tests/conftest.py b/tests/conftest.py index 898183f..ab5898f 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -3,13 +3,13 @@ import pytest -from template_python.path import CONFIG_DIR, LOGS_DIR, OUTPUTS_DIR, ROOT_DIR +from template_python.path import CONFIG_DIR, DATA_DIR, LOGS_DIR, OUTPUTS_DIR, ROOT_DIR # Fixture for paths @pytest.fixture( - params=[ROOT_DIR, CONFIG_DIR, LOGS_DIR, OUTPUTS_DIR], - ids=["root_dir", "config_dir", "logs_dir", "outputs_dir"], + params=[ROOT_DIR, CONFIG_DIR, LOGS_DIR, OUTPUTS_DIR, DATA_DIR], + ids=["root_dir", "config_dir", "logs_dir", "outputs_dir", "data_dir"], ) def path(request: pytest.FixtureRequest) -> Generator[Path, None, None]: """A fixture that provides a path for testing.