-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
29 lines (27 loc) · 919 Bytes
/
.pre-commit-config.yaml
File metadata and controls
29 lines (27 loc) · 919 Bytes
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
repos:
# Syntax validation and some basic sanity checks
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: check-merge-conflict
- id: check-ast
fail_fast: True
- id: check-json
- id: check-added-large-files
args: ['--maxkb=200']
- id: check-yaml
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.12.7
hooks:
- id: ruff-check
args: [--fix, --exit-non-zero-on-fix, --show-fixes]
- id: ruff-format
files: \.pyi?$|SConscript$|^libtbx_config$
types: [file]
# Type checking
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.17.1
hooks:
- id: mypy
files: 'src/.*\.py$'
additional_dependencies: ['types-pytz==2021.3.2', 'types-python-dateutil==2.8.3', 'types-setuptools==57.4.4', 'types-PyYAML==6.0.1', 'types-pycurl==7.44.1', 'types-requests==2.26.1', 'types-certifi==2021.10.8.0', 'types-pyOpenSSL==21.0.1']