-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
85 lines (74 loc) · 2.29 KB
/
.pre-commit-config.yaml
File metadata and controls
85 lines (74 loc) · 2.29 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
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
# Note: don't use this config for your own repositories. Instead, see
# "Version control integration" in docs/integrations/source_version_control.md
exclude: ^(profiling/|tests/data/)
repos:
- repo: local
hooks:
- id: check-pre-commit-rev-in-example
name: Check pre-commit rev in example
language: python
entry: python -m scripts.check_pre_commit_rev_in_example
files: '(CHANGES|source_version_control|using_black_with_jupyter_notebooks)\.md$'
additional_dependencies:
- beautifulsoup4>=4.14.2
- commonmark>=0.9.1
- pyyaml>=6.0.1
- id: check-version-in-the-basics-example
name: Check black version in the basics example
language: python
entry: python -m scripts.check_version_in_basics_example
files: '(CHANGES|the_basics)\.md$'
additional_dependencies:
- beautifulsoup4>=4.14.2
- commonmark>=0.9.1
- repo: https://github.com/pycqa/isort
rev: 8.0.1
hooks:
- id: isort
- repo: https://github.com/pycqa/flake8
rev: 7.3.0
hooks:
- id: flake8
additional_dependencies:
- flake8-bugbear
- flake8-comprehensions
- flake8-simplify
exclude: ^src/blib2to3/
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.19.1
hooks:
- id: mypy
exclude: ^docs/conf.py$
args: []
additional_dependencies:
- click>=8.0.0
- packaging>=22.0
- platformdirs>=2
- pytokens~=0.4.0
- tomli>=1.1.0
- uvloop>=0.15.2; sys_platform != 'win32'
- winloop>=0.5.0; sys_platform == 'win32'
# blackd
- aiohttp>=3.10
# tests
- pytest>=7
# fuzz
- hypothesis
- hypothesmith
- types-atheris
# diff-shades
- urllib3
# version check
- beautifulsoup4>=4.14.2
- types-commonmark>=0.9.0
- types-pyyaml>=6.0.0
- repo: https://github.com/rbubley/mirrors-prettier
rev: v3.8.1
hooks:
- id: prettier
types_or: [markdown, yaml, json]
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: end-of-file-fixer
- id: trailing-whitespace