-
-
Notifications
You must be signed in to change notification settings - Fork 246
/
.pre-commit-config.yaml
36 lines (34 loc) · 979 Bytes
/
.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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-ast
- id: check-shebang-scripts-are-executable
- id: check-json
- id: check-symlinks
- id: check-toml
- id: check-xml
- id: check-yaml
- id: check-illegal-windows-names
- id: check-merge-conflict
- id: debug-statements
- id: check-builtin-literals
- id: check-case-conflict
- id: check-docstring-first
- id: detect-private-key
- id: forbid-submodules
- id: mixed-line-ending
- repo: https://github.com/pre-commit/mirrors-mypy
rev: 'v1.13.0'
hooks:
- id: mypy
additional_dependencies: [types-setuptools, types-click]
files: ^snap7
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: 'v0.7.2'
hooks:
- id: ruff
- id: ruff-format
exclude: "snap7/protocol.py"