-
Notifications
You must be signed in to change notification settings - Fork 10
/
.pre-commit-config.yaml
59 lines (53 loc) · 1.33 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
56
57
58
59
exclude: '.bumpversion.cfg$'
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: check-yaml
- id: end-of-file-fixer
exclude: 'lib/pytest-lsp/pytest_lsp/clients/.*\.json'
- id: trailing-whitespace
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.8.0
hooks:
- id: ruff
args: [--fix]
files: 'lib/.*\.py'
- id: ruff-format
files: 'lib/.*\.py'
- repo: https://github.com/pre-commit/mirrors-mypy
rev: 'v1.13.0'
hooks:
- id: mypy
name: mypy (pytest-lsp)
args: [--explicit-package-bases,--check-untyped-defs]
additional_dependencies:
- importlib-resources
- platformdirs
- 'pygls>=2.0a2'
- pytest
- pytest-asyncio
- websockets
files: 'lib/pytest-lsp/pytest_lsp/.*\.py'
- id: mypy
name: mypy (lsp-devtools)
args: [--explicit-package-bases,--check-untyped-defs]
additional_dependencies:
- aiosqlite
- attrs
- importlib-resources
- platformdirs
- 'pygls>=2.0a2'
- stamina
- textual
- websockets
files: 'lib/lsp-devtools/lsp_devtools/.*\.py'
- repo: local
hooks:
- id: check-capabilities
name: check-capabilities
language: python
additional_dependencies:
- lsprotocol
files: 'lib/pytest-lsp/pytest_lsp/clients/.*\.json'
entry: python scripts/check_capabilities.py