Skip to content

Commit 50f1fbd

Browse files
committed
➕ dep-add(template): add support for pytest-benchmark
1 parent 67e9f48 commit 50f1fbd

File tree

2 files changed

+25
-17
lines changed

2 files changed

+25
-17
lines changed

copier.yaml

Lines changed: 19 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@ repository_provider:
5252
help: Your repository provider
5353
default: github
5454
choices:
55-
- github
56-
- other
55+
- github
56+
- other
5757

5858
author_github_handle:
5959
when: "{{ repository_provider == 'github' }}"
@@ -66,27 +66,27 @@ homepage:
6666
type: str
6767
help: "The project Homepage"
6868
default: >-
69-
{% if repository_provider == 'github' -%}
70-
https://{{ author_github_handle }}.github.io/{{ project_name }}
71-
{%- endif %}
69+
{% if repository_provider == 'github' -%}
70+
https://{{ author_github_handle }}.github.io/{{ project_name }}
71+
{%- endif %}
7272
7373
repository:
7474
when: "{{ repository_provider == 'github' }}"
7575
type: str
7676
help: "The project Repository"
7777
default: >-
78-
{% if repository_provider == 'github' -%}
79-
https://github.com/{{ author_github_handle }}/{{ project_name }}
80-
{%- endif %}
78+
{% if repository_provider == 'github' -%}
79+
https://github.com/{{ author_github_handle }}/{{ project_name }}
80+
{%- endif %}
8181
8282
documentation:
8383
when: "{{ repository_provider == 'github' }}"
8484
type: str
8585
help: "The project Documentation"
8686
default: >-
87-
{% if repository_provider == 'github' -%}
88-
https://{{ author_github_handle }}.github.io/{{ project_name }}
89-
{%- endif %}
87+
{% if repository_provider == 'github' -%}
88+
https://{{ author_github_handle }}.github.io/{{ project_name }}
89+
{%- endif %}
9090
9191
copyright_license:
9292
type: str
@@ -118,10 +118,10 @@ python_version:
118118
help: "Choose the default Python version for development, documentation generation, and package build:"
119119
default: "3.12"
120120
choices:
121-
- "3.10"
122-
- "3.11"
123-
- "3.12"
124-
- "3.13"
121+
- "3.10"
122+
- "3.11"
123+
- "3.12"
124+
- "3.13"
125125

126126
min_python_version:
127127
type: str
@@ -185,8 +185,8 @@ coverage_threshold:
185185
with_conventional_commits:
186186
type: bool
187187
help: >-
188-
Do you want to follow the Conventional Commits standard (https://www.conventionalcommits.org)
189-
for your commit messages?
188+
Do you want to follow the Conventional Commits standard (https://www.conventionalcommits.org)
189+
for your commit messages?
190190
default: true
191191

192192
cz_gitmoji:
@@ -454,6 +454,8 @@ dev_deps:
454454
multiselect: true
455455
choices:
456456
- pytest-asyncio
457+
- pytest-benchmark
458+
- pytest-benchmark[histogram]
457459
- responses
458460
- aioresponses
459461
- types-requests

includes/extra_dev_dependencies.jinja

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
{%- if 'pytest-asyncio' in dev_deps %}
22
"pytest-asyncio>=0.26.0",
33
{%- endif %}
4+
{%- if 'pytest-benchmark[histogram]' in dev_deps %}
5+
"pytest-benchmark[histogram]>=5.1.0",
6+
{%- endif %}
7+
{%- if ('pytest-benchmark' in dev_deps) and ('pytest-benchmark[histogram]' not in dev_deps) %}
8+
"pytest-benchmark>=5.1.0",
9+
{%- endif %}
410
{%- if 'responses' in dev_deps %}
511
"responses>=0.25.7",
612
{%- endif %}

0 commit comments

Comments
 (0)