-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
39 lines (38 loc) · 1.03 KB
/
.pre-commit-config.yaml
File metadata and controls
39 lines (38 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
---
# SPDX-FileCopyrightText: 2014-2025 The VILLASframework Authors
# SPDX-License-Identifier: Apache-2.0
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: check-yaml
- id: check-json
- id: pretty-format-json
args:
- --autofix
- id: check-added-large-files
- id: check-ast
- id: check-case-conflict
- id: check-executables-have-shebangs
- id: check-symlinks
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/pycqa/flake8
rev: 6.0.0
hooks:
- id: flake8
- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.32.1
hooks:
- id: check-jsonschema
name: "Check schemas"
language: python
files: ^villas/controller/schemas/.*\.yaml$
types: [yaml]
args: ["--schemafile", "https://json-schema.org/draft/2020-12/schema"]
- id: check-jsonschema
name: "Check OpenAPI doc"
language: python
files: ^doc/openapi.yaml$
types: [yaml]
args: ["--schemafile", "https://spec.openapis.org/oas/3.1/schema/2025-02-13"]