-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
36 lines (36 loc) · 1.23 KB
/
.pre-commit-config.yaml
File metadata and controls
36 lines (36 loc) · 1.23 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
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.14.2
hooks:
# Run the linter and fix issues.
- id: ruff-check
args: [--fix]
files: ^ena-submission/
# Run lint but only fix auto-fixable issues.
- id: ruff-check
args: [--fix-only]
files: ^preprocessing/nextclade/
# Run the formatter.
- id: ruff-format
files: ^ena-submission/|^preprocessing/nextclade/
- repo: local
hooks:
- id: prettier-values-schema
name: prettier (values.schema.json)
entry: npx prettier@3.6.2 --write
language: system
files: ^kubernetes/loculus/values\.schema\.json$
- id: helm-lint
name: helm lint
entry: bash
args:
- -c
- |
set -euo pipefail
helm lint kubernetes/loculus -f kubernetes/loculus/values.yaml
helm lint kubernetes/loculus -f kubernetes/loculus/values.yaml -f kubernetes/loculus/values_e2e_and_dev.yaml
helm lint kubernetes/loculus -f kubernetes/loculus/values.yaml -f kubernetes/loculus/values_preview_server.yaml
language: system
pass_filenames: false
files: ^kubernetes/loculus/