Skip to content

Commit d6e383c

Browse files
committed
update templates after using openapi-python-client 0.25.1
1 parent 46e8f9c commit d6e383c

File tree

4 files changed

+22
-7
lines changed

4 files changed

+22
-7
lines changed

field-manager-python-client/pyproject.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ include = ["CHANGELOG.md", "field_manager_python_client/py.typed"]
1313

1414
[tool.poetry.dependencies]
1515
python = "^3.9"
16-
httpx = ">=0.20.0,<0.28.0"
17-
attrs = ">=21.3.0"
16+
httpx = ">=0.23.0,<0.29.0"
17+
attrs = ">=22.2.0"
1818
python-dateutil = "^2.8.0"
1919
python-keycloak = "^5.5.0"
2020

@@ -26,4 +26,4 @@ build-backend = "poetry.core.masonry.api"
2626
line-length = 120
2727

2828
[tool.ruff.lint]
29-
select = ["F", "I", "UP"]
29+
select = ["F", "I", "UP"]

templates/helpers.jinja

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{% macro safe_docstring(content, omit_if_empty=False) %}
2+
{# This macro returns the provided content as a docstring, set to a raw string if it contains a backslash #}
3+
{% if (not omit_if_empty) or (content | trim) %}
4+
{% if '\\' in content -%}
5+
r""" {{ content }} """
6+
{%- else -%}
7+
""" {{ content }} """
8+
{%- endif -%}
9+
{% endif %}
10+
{% endmacro %}

templates/pyproject.toml.jinja

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ include = ["CHANGELOG.md", "{{ package_name }}/py.typed"]
2020
2121
{% if pdm %}
2222
dependencies = [
23-
"httpx>=0.20.0,<0.28.0",
24-
"attrs>=21.3.0",
23+
"httpx>=0.23.0,<0.29.0",
24+
"attrs>=22.2.0",
2525
"python-dateutil>=2.8.0",
2626
"python-keycloak>=5.5.0",
2727
]
@@ -33,8 +33,8 @@ distribution = true
3333

3434
[tool.poetry.dependencies]
3535
python = "^3.9"
36-
httpx = ">=0.20.0,<0.28.0"
37-
attrs = ">=21.3.0"
36+
httpx = ">=0.23.0,<0.29.0"
37+
attrs = ">=22.2.0"
3838
python-dateutil = "^2.8.0"
3939
python-keycloak = "^5.5.0"
4040
{% endif %}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
[tool.ruff]
2+
line-length = 120
3+
4+
[tool.ruff.lint]
5+
select = ["F", "I", "UP"]

0 commit comments

Comments
 (0)