-
Notifications
You must be signed in to change notification settings - Fork 22
/
.pre-commit-config.yaml
55 lines (47 loc) · 1.14 KB
/
.pre-commit-config.yaml
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
ci:
autoupdate_schedule: quarterly
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: check-yaml
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.6.9
hooks:
- id: ruff
name: ruff (esbonio)
args: [--fix]
files: 'lib/esbonio/.*\.py'
- id: ruff
name: ruff (esbonio-extensions)
args: [--fix]
files: 'lib/esbonio-extensions/.*\.py'
- id: ruff-format
name: ruff-format (esbonio)
files: 'lib/esbonio/.*\.py'
- id: ruff-format
name: ruff-format (esbonio-extensions)
files: 'lib/esbonio-extensions/.*\.py'
- repo: https://github.com/pre-commit/mirrors-mypy
rev: 'v1.11.2'
hooks:
- id: mypy
name: mypy (scripts)
files: 'scripts/.*\.py'
exclude: 'scripts/.*_documentation\.py'
- id: mypy
name: mypy (esbonio)
args: [--config,lib/esbonio/pyproject.toml]
additional_dependencies:
- aiosqlite
- platformdirs
- pygls>=2a2
- pytest_lsp>=1.0b2
- sphinx
- tomli
- types-docutils
- types-pygments
- websockets
files: 'lib/esbonio/esbonio/.*\.py'