Skip to content

Commit edd0c86

Browse files
committed
fixup! chore: add pre-commit check for API schema sync
Signed-off-by: Luiz Georg <luiz.georg@profusion.mobi>
1 parent 47ccb66 commit edd0c86

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,12 +87,12 @@ repos:
8787
with open("schema.yml") as f:
8888
old_schema = f.read()
8989
if new_schema != old_schema:
90-
print("Schema is not up-to-date. Run 'python manage.py spectacular --file schema.yml' to regenerate it")
90+
print("Schema is not up-to-date. Run \"python manage.py spectacular --file schema.yml\" to regenerate it")
9191
sys.exit(1)
9292
'
9393
files: 'backend/(.*\.py|schema.yml)'
9494
pass_filenames: false
9595
language: python
96-
language_version: '3.13'
96+
language_version: '3.12'
9797
additional_dependencies: [poetry]
9898
stages: [pre-commit]

0 commit comments

Comments
 (0)