forked from dstackai/dstack
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
38 lines (37 loc) · 1.29 KB
/
.pre-commit-config.yaml
File metadata and controls
38 lines (37 loc) · 1.29 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
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.11.6 # Should match pyproject.toml
hooks:
- id: ruff
name: ruff common
args: ['--fix']
- id: ruff-format
- repo: https://github.com/golangci/golangci-lint
rev: v1.62.0 # Should match .github/workflows/build.yml
hooks:
- id: golangci-lint-full
language_version: 1.23.0 # Should match runner/go.mod
entry: bash -c 'cd runner && golangci-lint run'
stages: [manual]
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: end-of-file-fixer
# TODO(oleg): fix ESLint warnings
# - repo: https://github.com/pre-commit/mirrors-eslint
# rev: 'v8.31.0'
# hooks:
# - id: eslint
# name: ESLint
# entry: eslint --fix --config frontend/.eslintrc --ignore-path frontend/.eslintignore
# language: node
# pass_filenames: false
# cwd: "frontend/"
# additional_dependencies:
# - eslint@8.31.0
# - eslint-config-prettier@8.10.0
# - eslint-plugin-i18n@2.4.0
# - eslint-plugin-prettier@4.2.1
# - eslint-plugin-simple-import-sort@10.0.0
# - '@typescript-eslint/eslint-plugin@5.48.1'
# - '@typescript-eslint/parser@5.48.1'