forked from widgetti/solara
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
31 lines (31 loc) · 1.12 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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: check-yaml
- id: end-of-file-fixer
- id: trailing-whitespace
exclude: .bumpversion.cfg
- repo: https://github.com/codespell-project/codespell
rev: v2.2.6
hooks:
- id: codespell
files: ^.*\.(py|md|yaml|js|ts|ipynb)$
args: ["--skip=**/solara_portal/**"]
additional_dependencies:
- tomli
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: "v0.3.4"
hooks:
- id: ruff
stages: [commit]
- id: ruff-format
stages: [commit]
- repo: https://github.com/pre-commit/mirrors-mypy
rev: "v1.9.0" # Use the sha / tag you want to point at
hooks:
- id: mypy
pass_filenames: false
args: [--explicit-package-bases, .]
additional_dependencies: [types-requests, types-markdown, types-PyYAML, types-filelock, types-cachetools, types-redis, types-python-dateutil, types-pycurl, reacton, types-six, types-decorator, ipython, ipykernel]
exclude: tests/unit/solara_test_apps/multipage/04-a_directory/*|nogit