-
Notifications
You must be signed in to change notification settings - Fork 6
/
.pre-commit-config.yaml
41 lines (38 loc) · 1.17 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
ci:
autofix_commit_msg: |
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
autofix_prs: true
autoupdate_branch: ''
autoupdate_commit_msg: '[pre-commit.ci] pre-commit autoupdate'
autoupdate_schedule: weekly
skip: []
submodules: false
repos:
- repo: https://github.com/psf/black
rev: 24.10.0
hooks:
- id: black
# It is recommended to specify the latest version of Python
# supported by your project here, or alternatively use
# pre-commit's default_language_version, see
# https://pre-commit.com/#top_level-default_language_version
language_version: python3
- repo: https://github.com/psf/black
rev: 24.10.0
hooks:
- id: black-jupyter
language_version: python3
- repo: local
hooks:
- id: docformatter
name: docformatter
description: Formats docstrings to follow PEP 257.
entry: python -m docformatter
additional_dependencies:
- docformatter==1.7.5
- tomli
args: [-r, --black, --in-place]
language: python
types:
- python