forked from facebookresearch/HolisticTraceAnalysis
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
36 lines (32 loc) · 976 Bytes
/
.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
default_language_version:
python: python3
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.3.0
hooks:
- id: trailing-whitespace
- id: check-ast
- id: check-merge-conflict
- id: check-added-large-files
exclude_types: ['gzip', 'jupyter']
args: ['--maxkb=2048']
- id: end-of-file-fixer
- repo: https://github.com/omnilib/ufmt
rev: v1.3.2
hooks:
- id: ufmt
additional_dependencies:
- toml
- black == 24.3.0
- usort == 1.0.4
- repo: https://github.com/pycqa/flake8
rev: 5.0.3
hooks:
- id: flake8
args: [--show-source, --statistics]
- repo: https://github.com/pre-commit/mirrors-mypy
rev: 'v1.2.0'
hooks:
- id: mypy
args: [--no-strict-optional, --ignore-missing-imports, --explicit-package-bases, --scripts-are-modules, --pretty]
additional_dependencies: [numpy==1.23.5, types-requests]