-
Notifications
You must be signed in to change notification settings - Fork 1
/
.pre-commit-config.yaml
93 lines (93 loc) · 2.43 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
exclude: ^(external/|venv/|.venv/|tests/|notebooks/|scripts/|src/modules/models/swin/)
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: check-ast
- id: check-json
- id: pretty-format-json
args: [--autofix, --no-sort-keys]
- id: check-symlinks
- id: check-toml
- id: check-xml
- id: check-yaml
- id: mixed-line-ending
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/abravalheri/validate-pyproject
rev: v0.15
hooks:
- id: validate-pyproject
- repo: https://github.com/pre-commit/pygrep-hooks
rev: v1.10.0
hooks:
- id: python-check-blanket-noqa
- id: python-check-blanket-type-ignore
- id: python-check-mock-methods
- id: python-no-log-warn
- id: python-use-type-annotations
- repo: https://github.com/jackdewinter/pymarkdown
rev: v0.9.15
hooks:
- id: pymarkdown
args:
- -d
- md013
- scan
- repo: https://github.com/sphinx-contrib/sphinx-lint
rev: v0.9.1
hooks:
- id: sphinx-lint
args: [ --enable=default-role ]
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.1.9
hooks:
- id: ruff
- id: ruff-format
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.8.0
hooks:
- id: mypy
additional_dependencies:
- numpy
- scikit-learn
- scikit-image
- scipy
- tqdm
- polars
- imagecodecs
- Pillow
- opencv-python
- tifffile
- seaborn
- matplotlib
- plotly
- torch
- torchaudio
- torchvision
- torch-summary
- open-clip-torch
- dash
- dash-bootstrap-components
- dash-bootstrap-templates
- rasterio
- dask
- dask-glm
- dask_image
- dask-ml
- distributed
- fsspec
- segmentation-models-pytorch
- catboost
- albumentations
- typing_extensions
- annotated-types
- pandas-stubs
- traitlets
- hydra-core
- wandb
- randomname
- coloredlogs
- kornia
- einops
args: [ --disallow-any-generics, --disallow-untyped-defs, --disable-error-code=import-untyped]