-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
41 lines (37 loc) · 1.12 KB
/
.pre-commit-config.yaml
File metadata and controls
41 lines (37 loc) · 1.12 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
40
41
---
repos:
- repo: https://github.com/astral-sh/uv-pre-commit
# uv version.
rev: 0.10.12
hooks:
- id: uv-lock
- repo: https://github.com/astral-sh/ruff-pre-commit
hooks:
- id: ruff-check
args:
- --fix
- --exit-non-zero-on-fix
- --ignore=E731,E501,W605,T201,UP007
# See https://beta.ruff.rs/docs/rules for an overview of ruff rules
- --select=E,W,F,I,T,RUF,TID,UP
- --fixable=E,W,F,I,T,RUF,TID,UP
- --target-version=py310
- id: ruff-format
rev: v0.15.7
- repo: https://github.com/igorshubovych/markdownlint-cli
rev: v0.48.0
hooks:
- id: markdownlint
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0 # Use the latest stable version
hooks:
- id: end-of-file-fixer
# Mypy must be run in the local system environment, not in the pre-commit environment.
- hooks:
- id: mypy
name: mypy
entry: dmypy run -- cognite_toolkit/ tests_smoke/ --config-file pyproject.toml
files: ^.*.(py|pyi)$
language: system
pass_filenames: false
repo: local