mirror of
https://github.com/godotengine/godot.git
synced 2025-12-31 01:49:10 +03:00
CI: Add pre-commit hook for XML schema validation
This commit is contained in:
@@ -64,16 +64,6 @@ repos:
|
||||
files: ^core/extension/gdextension_interface\.json$
|
||||
args: ["--schemafile", "core/extension/gdextension_interface.schema.json"]
|
||||
|
||||
### Requires Docker; look into alternative implementation.
|
||||
# - repo: https://github.com/comkieffer/pre-commit-xmllint.git
|
||||
# rev: 1.0.0
|
||||
# hooks:
|
||||
# - id: xmllint
|
||||
# language: docker
|
||||
# types_or: [text]
|
||||
# files: ^(doc/classes|.*/doc_classes)/.*\.xml$
|
||||
# args: [--schema, doc/class.xsd]
|
||||
|
||||
- repo: local
|
||||
hooks:
|
||||
- id: make-rst
|
||||
@@ -99,6 +89,13 @@ repos:
|
||||
pass_filenames: false
|
||||
files: ^(gles3|glsl)_builders\.py$
|
||||
|
||||
- id: validate-xml
|
||||
name: validate-xml
|
||||
language: python
|
||||
entry: python misc/scripts/validate_xml.py
|
||||
files: ^(doc/classes|.*/doc_classes)/.*\.xml$
|
||||
additional_dependencies: [xmlschema]
|
||||
|
||||
- id: eslint
|
||||
name: eslint
|
||||
language: node
|
||||
|
||||
Reference in New Issue
Block a user