File tree Expand file tree Collapse file tree 3 files changed +27
-4
lines changed Expand file tree Collapse file tree 3 files changed +27
-4
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,8 @@ RUN pip install --no-cache-dir -r /requirements.txt
6
6
RUN mkdir /app
7
7
COPY src/ app/
8
8
9
+ ARG VERSION
10
+ ENV VERSION=${VERSION}
9
11
ENV PYTHONUNBUFFERED=1
10
12
11
13
WORKDIR /app
Original file line number Diff line number Diff line change @@ -7,10 +7,18 @@ include config.mk
7
7
help :
8
8
@awk ' BEGIN {FS = ":.*?## "} /^[0-9a-zA-Z_-]+:.*?## / {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}' $(MAKEFILE_LIST )
9
9
10
- venv/ :
11
- python -m venv venv/
12
- source venv/bin/activate && pip install --upgrade pip
10
+ data/ :
11
+ mkdir -p data/
12
+
13
+ env :
14
+ cp env.example env
13
15
16
+ .venv/ : data/ env
17
+ python -m venv .venv/
18
+ source venv/bin/activate && pip install --upgrade pip
19
+ source venv/bin/activate && pip install -r requirements.txt
20
+ source venv/bin/activate && pip install -r requirements-dev.txt
21
+ source venv/bin/activate && pre-commit install
14
22
15
23
.PHONY : migrate
16
24
migrate : # # Run Django migrations
@@ -21,7 +29,7 @@ superuser: ## Create a superuser
21
29
docker compose run -it --rm django ./manage.py createsuperuser
22
30
23
31
.PHONY : dev-bootstrap
24
- dev-bootstrap : # # Bootstrap the development environment
32
+ dev-bootstrap : .venv/ # # Bootstrap the development environment
25
33
docker compose pull
26
34
docker compose build
27
35
docker compose up -d postgres
Original file line number Diff line number Diff line change @@ -49,3 +49,16 @@ exclude = [
49
49
[tool .bandit ]
50
50
exclude = [" src/**/tests/**" , " src/**/migrations/*" ]
51
51
skips = [" B106" ]
52
+
53
+ [tool .commitizen ]
54
+ name = " cz_conventional_commits"
55
+ version = " 0.1.0"
56
+ tag_format = " $version"
57
+ bump_message = " bump: version $current_version → $new_version"
58
+ update_changelog_on_bump = true
59
+ changelog_file = " CHANGELOG.md"
60
+ changelog_incremental = true
61
+ version_files = [
62
+ " pyproject.toml:^version" ,
63
+ " Dockerfile:VERSION" ,
64
+ ]
You can’t perform that action at this time.
0 commit comments