Skip to content

Commit be9f5a5

Browse files
committed
updates copier poetry-meta template
1 parent 8f756ab commit be9f5a5

File tree

9 files changed

+30
-18
lines changed

9 files changed

+30
-18
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Changes here will be overwritten by Copier
2-
_commit: v1.1.0
2+
_commit: v1.1.1
33
_src_path: https://github.com/worldworm/copier-poetry-meta.git
44
template_suffix: ''
55
use_subdir: false
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
The backend part of this project uses Python. Please follow these conventions for the backend code:
2+
- Use static typing with mypy annotations for all functions and variables.
3+
- Write code with 4 spaces indentation (not tabs).
4+
- Follow PEP 8 naming conventions: snake_case for variables, functions, and methods; UPPER_CASE for constants; PascalCase for classes.
5+
- Add docstrings for all functions, classes, and modules without any args, returns or examples.

template/pyproject.toml.jinja

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -11,34 +11,34 @@ keywords = []
1111
packages = [{include = "{{ package_import_name }}"}]
1212

1313
[tool.poetry.dependencies]
14-
python = ">=3.9,<4.0"
15-
loguru = "^0.7.2"
14+
python = "^3.10"
15+
loguru = "^0.7.3"
1616
{% if use_dotenv -%}
17-
pydantic-settings = "^2.2.1"
17+
pydantic-settings = "^2.9.0"
1818
{% endif -%}
1919
{% if use_database -%}
20-
sqlmodel = "^0.0.16"
20+
sqlmodel = "^0.0.24"
2121
{% if use_database_migrations -%}
22-
alembic = "^1.13.1"
22+
alembic = "^1.15.0"
2323
{% endif -%}
2424
{% if database_type == "postgres" -%}
25-
psycopg2-binary = "^2.9.9"
25+
psycopg2-binary = "^2.9.10"
2626
{% endif -%}
2727
{% if database_type == "mysql" -%}
28-
pymysql = "^1.1.0"
28+
pymysql = "^1.1.1"
2929
{% endif -%}
3030
{% endif %}
3131
[tool.poetry.group.dev.dependencies]
32-
pre-commit = "^3.7.0"
33-
pytest = "^8.1.1"
34-
pytest-cov = "^5.0.0"
35-
pylint = "^3.1.0"
36-
poethepoet = "^0.25.1"
32+
pre-commit = "^4.2.0"
33+
pytest = "^8.3.5"
34+
pytest-cov = "^6.1.1"
35+
pylint = "^3.3.6"
36+
poethepoet = "^0.34.0"
3737
pydocstringformatter = "^0.7.3"
38-
bandit = "^1.7.8"
39-
mypy = "^1.9.0"
40-
autopep8 = "^2.1.0"
41-
isort = "^5.13.2"
38+
bandit = "^1.8.3"
39+
mypy = "^1.15.0"
40+
autopep8 = "^2.3.2"
41+
isort = "^6.0.1"
4242

4343
[build-system]
4444
requires = ["poetry-core"]
@@ -125,7 +125,7 @@ post_install = "pre-commit-install"
125125

126126
[tool.poe.tasks.bandit]
127127
help = "Run security checks"
128-
cmd = "bandit -r {{ package_import_name }}"
128+
cmd = "bandit -c pyproject.toml -r {{ package_import_name }}"
129129

130130
[tool.poe.tasks.style]
131131
help = "Run all style formatters on the code base"

template/{% if repository_provider == "GitLab" %}.gitlab-ci.yml{% endif %}.jinja

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,13 @@ default:
2525
poetry_cache:
2626
stage: prepare
2727
image: $IMAGE_PYTHON
28+
only:
29+
changes:
30+
- "**/*.py"
31+
- .gitlab-ci.yml
32+
- .pylintrc
33+
- pyproject.toml
34+
- poetry.lock
2835
tags:
2936
- $RUNNER_TEST
3037
cache:

0 commit comments

Comments
 (0)