This repository was archived by the owner on Feb 2, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
47 lines (43 loc) · 1.47 KB
/
.pre-commit-config.yaml
File metadata and controls
47 lines (43 loc) · 1.47 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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: f71fa2c1f9cf5cb705f73dffe4b21f7c61470ba9 # frozen: v4.4.0
hooks:
- id: check-added-large-files
- id: check-case-conflict
- id: check-merge-conflict
- id: check-symlinks
- id: check-json
- id: check-yaml
- id: check-toml
- id: check-xml
- id: debug-statements
# - id: end-of-file-fixer # doesn't interact well with nbqa
- id: mixed-line-ending
- id: requirements-txt-fixer
- id: trailing-whitespace
- repo: https://github.com/pycqa/isort
rev: dbf82f2dd09ae41d9355bcd7ab69187a19e6bf2f # frozen: 5.12.0
hooks:
- id: isort
- repo: https://github.com/asottile/pyupgrade
rev: 01cee377ba3a5264c7fbe7b6beae7b575f764dc3 # frozen: v3.3.1
hooks:
- id: pyupgrade
args: [ "--py37-plus" ]
- repo: https://github.com/nbQA-dev/nbQA
rev: 73e47d5a94b8724ce0b36e7bf29103a6f45dc505 # frozen: 1.6.1
hooks:
- id: nbqa-pyupgrade
additional_dependencies: [ pyupgrade==2.19.4 ]
args: [ "--py37-plus" ]
- id: nbqa-isort
additional_dependencies: [ isort==5.9.1 ]
args: [ "--nbqa-mutate" ]
- repo: https://github.com/roy-ht/pre-commit-jupyter
rev: 551ab39ffcb92404c78593515520b05ec1dab9e3 # frozen: v1.2.1
hooks:
- id: jupyter-notebook-cleanup
# args:
# - --remove-kernel-metadata
# - --pin-patterns
# - "[pin];[donotremove]"