-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
48 lines (46 loc) · 1.23 KB
/
.pre-commit-config.yaml
File metadata and controls
48 lines (46 loc) · 1.23 KB
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
# pre-commit package installation is necessary to use pre-commit.
# $ pip install pre-commit
# $ pre-commit install
default_language_version:
python: python3
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.14.4
hooks:
- id: ruff-check
args: [ --fix ]
- id: ruff-format
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.16.0
hooks:
- id: mypy
additional_dependencies: [
"alembic>=1.5.0",
"colorlog",
"numpy",
"packaging>=20.0",
"sqlalchemy>=1.3.0",
"tqdm",
"PyYAML",
"mypy_boto3_s3",
"types-PyYAML",
"types-redis",
"types-setuptools",
"types-tqdm",
"typing_extensions>=3.10.0.0",
"types-protobuf",
]
exclude: docs|tutorial|optuna/storages/_rdb/alembic|optuna/storages/_grpc/auto_generated
args: [
--warn-unused-configs,
--disallow-untyped-calls,
--disallow-untyped-defs,
--disallow-incomplete-defs,
--check-untyped-defs,
--no-implicit-optional,
--warn-redundant-casts,
--strict-equality,
--extra-checks,
--no-implicit-reexport,
--ignore-missing-imports,
]