-
Notifications
You must be signed in to change notification settings - Fork 30
/
Copy path.pre-commit-config.yaml
51 lines (51 loc) · 1.24 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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: check-added-large-files
args: [--maxkb=500, --enforce-all]
# Using this mirror lets us use mypyc-compiled black, which is about 2x faster
- repo: https://github.com/psf/black-pre-commit-mirror
rev: 22.3.0
hooks:
- id: black
name: black
files: .*\.py
args: [--config=pyproject.toml]
- repo: https://github.com/pycqa/isort
rev: 5.12.0
hooks:
- id: isort
name: isort
args: [--settings=pyproject.toml, --config-root=., --resolve-all-configs]
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.1.1
hooks:
- id: mypy
name: mypy
files: .*\.py
additional_dependencies:
- types-aiofiles
- types-cachetools
- types-python-dateutil
- types-python-slugify
- types-pytz
- types-PyYAML
- types-redis
- types-requests
- types-six
- types-tabulate
- types-toml
args:
- --ignore-missing-imports
- --no-namespace-packages
- --enable-incomplete-feature=Unpack
- --python-version=3.10
entry: mypy
exclude: src/bioemu/openfold/
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: v0.7.0
hooks:
- id: ruff
args: [--fix]
files: .*\.py