Skip to content

Commit ca48294

Browse files
Merge branch 'main' into chore/open-source-sample
2 parents 6b8d497 + 6439e18 commit ca48294

File tree

3 files changed

+8
-10
lines changed

3 files changed

+8
-10
lines changed

{{cookiecutter.project_slug}}/.env.example

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ SECRET_KEY=secret
22
DEBUG=True
33
MODEL_PATH={{cookiecutter.machine_learn_model_path}}
44
MODEL_NAME={{cookiecutter.machine_learn_model_name}}
5-
MEMOIZATION_FLAG=True
5+
MEMOIZATION_FLAG=False

{{cookiecutter.project_slug}}/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ all: clean test install run deploy down
2424
venv:
2525
uv venv .venv
2626

27-
test: venv
27+
test: install
2828
uv run pytest tests -vv --show-capture=all
2929

3030
install: generate_dot_env venv
@@ -57,4 +57,4 @@ clean:
5757
rm -rf *.egg-info
5858
rm -rf htmlcov
5959
rm -rf .tox/
60-
rm -rf docs/_build
60+
rm -rf docs/_build

{{cookiecutter.project_slug}}/app/core/config.py

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@
99
config = Config(".env")
1010

1111
API_PREFIX = "/api"
12-
VERSION = "0.1.0"
12+
VERSION = "{{cookiecutter.version}}"
1313
DEBUG: bool = config("DEBUG", cast=bool, default=False)
1414
MAX_CONNECTIONS_COUNT: int = config("MAX_CONNECTIONS_COUNT", cast=int, default=10)
1515
MIN_CONNECTIONS_COUNT: int = config("MIN_CONNECTIONS_COUNT", cast=int, default=10)
1616
SECRET_KEY: Secret = config("SECRET_KEY", cast=Secret, default="")
1717
MEMOIZATION_FLAG: bool = config("MEMOIZATION_FLAG", cast=bool, default=True)
1818

19-
PROJECT_NAME: str = config("PROJECT_NAME", default="manu")
19+
PROJECT_NAME: str = config("PROJECT_NAME", default="{{cookiecutter.project_name}}")
2020

2121
# logging configuration
2222
LOGGING_LEVEL = logging.DEBUG if DEBUG else logging.INFO
@@ -25,8 +25,6 @@
2525
)
2626
logger.configure(handlers=[{"sink": sys.stderr, "level": LOGGING_LEVEL}])
2727

28-
MODEL_PATH = config(
29-
"MODEL_PATH", default="/Users/arthur.dasilva/repos/arthurhenrique/n"
30-
)
31-
MODEL_NAME = config("MODEL_NAME", default="pregnancy_model_local.joblib")
32-
INPUT_EXAMPLE = config("INPUT_EXAMPLE", default="./ml/model/examples/example.json")
28+
MODEL_PATH = config("MODEL_PATH", default="{{cookiecutter.machine_learn_model_path}}")
29+
MODEL_NAME = config("MODEL_NAME", default="{{cookiecutter.machine_learn_model_name}}")
30+
INPUT_EXAMPLE = config("INPUT_EXAMPLE", default="{{cookiecutter.input_example_path}}")

0 commit comments

Comments
 (0)