main
yaml 36 lines 1.03 KB
Raw
1 # Copyright 2026 Google LLC
2 #
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
6 #
7 # http://www.apache.org/licenses/LICENSE-2.0
8 #
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
14
15 repos:
16 - repo: local
17 hooks:
18 - id: pytest
19 name: pytest
20 entry: uv run pytest
21 language: system
22 types: [python]
23 pass_filenames: false
24 always_run: true
25 - id: ruff-check
26 name: ruff check
27 entry: uv run ruff check --force-exclude
28 language: system
29 types: [python]
30 require_serial: true
31 - id: ruff-format
32 name: ruff format
33 entry: uv run ruff format --force-exclude
34 language: system
35 types: [python]
36 require_serial: true