Skip to content

Commit e88fea6

Browse files
authored
do not export unset fields, and set min python version (#15)
1 parent e250986 commit e88fea6

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.github/workflows/update_contributions.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
- name: Setup Python
1818
uses: actions/setup-python@v5
1919
with:
20-
python-version: 3.x
20+
python-version: '>=3.11'
2121

2222
- name: Install dependencies
2323
run: pip install -r requirements.txt

scripts/parse_and_validate_properties_txt.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,19 +101,19 @@ def validate_existing(properties_dict):
101101
# validation on existing contribution is weaker
102102
properties = PropertiesExisting.model_validate(properties_dict)
103103

104-
return properties.model_dump()
104+
return properties.model_dump(exclude_unset=True)
105105

106106
def validate_new(properties_dict):
107107
# new contribution has stronger validation
108108
properties = PropertiesBase.model_validate(properties_dict)
109109

110-
return properties.model_dump()
110+
return properties.model_dump(exclude_unset=True)
111111

112112
def validate_new_library(properties_dict):
113113
# new contribution has stronger validation
114114
properties = LibraryPropertiesNew.model_validate(properties_dict)
115115

116-
return properties.model_dump()
116+
return properties.model_dump(exclude_unset=True)
117117

118118
def set_output(output_object):
119119
with open(os.environ['GITHUB_OUTPUT'],'a') as f:

0 commit comments

Comments
 (0)