Skip to content

Commit bc32d59

Browse files
authored
Merge branch 'main' into fix_content_type_with_semicolon_separator
2 parents 461a081 + 302cd02 commit bc32d59

File tree

6 files changed

+33
-8
lines changed

6 files changed

+33
-8
lines changed

.github/renovate.json

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,27 @@
33
"config:base",
44
":semanticCommitTypeAll(chore)"
55
],
6-
"rangeStrategy": "widen"
6+
"rangeStrategy": "widen",
7+
"regexManagers": [
8+
{
9+
"fileMatch": [
10+
"release.*\\.yml"
11+
],
12+
"matchStrings": [
13+
"version:\\s*(?<currentValue>.*)"
14+
],
15+
"depNameTemplate": "knope",
16+
"datasourceTemplate": "crate",
17+
"versioningTemplate": "semver"
18+
}
19+
],
20+
"packageRules": [
21+
{
22+
"packagePatterns": [
23+
"^knope$"
24+
],
25+
"groupName": "knope",
26+
"rangeStrategy": "pin"
27+
}
28+
]
729
}

.github/workflows/release-dry-run.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,5 @@ jobs:
1616
- name: Install Knope
1717
uses: knope-dev/action@v1
1818
with:
19-
version: 0.6.2
19+
version: 0.7.1
2020
- run: knope release --dry-run

.github/workflows/release.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ name: Release
22

33
on: workflow_dispatch
44

5+
permissions:
6+
contents: write
7+
58
jobs:
69
release:
710
runs-on: ubuntu-latest
@@ -20,11 +23,11 @@ jobs:
2023
- name: Install Knope
2124
uses: knope-dev/action@v1
2225
with:
23-
version: 0.6.2
26+
version: 0.7.1
2427
- name: Bump Version & Create GitHub Release
2528
run: knope release
2629
env:
27-
GITHUB_TOKEN: ${{ secrets.PAT }}
30+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2831
- name: Install Poetry
2932
run: pip install --upgrade poetry
3033
- name: Push to PyPI

end_to_end_tests/golden-record/my_test_api_client/models/an_all_of_enum.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33

44
class AnAllOfEnum(str, Enum):
5-
FOO = "foo"
6-
BAR = "bar"
75
A_DEFAULT = "a_default"
6+
BAR = "bar"
7+
FOO = "foo"
88
OVERRIDDEN_DEFAULT = "overridden_default"
99

1010
def __str__(self) -> str:

end_to_end_tests/golden-record/my_test_api_client/models/get_location_header_types_string_enum_header.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33

44
class GetLocationHeaderTypesStringEnumHeader(str, Enum):
55
ONE = "one"
6-
TWO = "two"
76
THREE = "three"
7+
TWO = "two"
88

99
def __str__(self) -> str:
1010
return str(self.value)

openapi_python_client/templates/str_enum.py.jinja

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from enum import Enum
22

33
class {{ enum.class_info.name }}(str, Enum):
4-
{% for key, value in enum.values.items() %}
4+
{% for key, value in enum.values|dictsort(true) %}
55
{{ key }} = "{{ value }}"
66
{% endfor %}
77

0 commit comments

Comments
 (0)