Skip to content

Commit 54cb759

Browse files
author
Maciek Pytel
committed
Fixes to update.sh
* Pin version of api-generator to make generated files consistent between different dev environments. * Run pre-commit hook to re-add license as part of the script. Without that the script generates massive noise and it is very hard to guess that you need to commit all those unwanted changes in order to get rid of them.
1 parent ee71941 commit 54cb759

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

dev_requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
-e .
22

33
# dev
4-
openapi-python-client>=0.21.5
4+
openapi-python-client==0.21.5
55
pre-commit
66
mypy
77
ruff

scripts/update.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,3 +91,5 @@ rm -rf tmp
9191
cat scripts/preserve_files.txt | while read entry; do
9292
git checkout HEAD -- $entry
9393
done
94+
95+
pre-commit run --all-files

0 commit comments

Comments
 (0)