-
Notifications
You must be signed in to change notification settings - Fork 2
/
.pre-commit-config.yaml
42 lines (42 loc) · 1.26 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
41
42
---
# If weird stuff happens: run `pre-commit autoupdate` to update the versions
exclude: |
(?x)
# Readme file(s)
^README\.md$|
# Library files can have extraneous formatting (even minimized)
/static/(src/)?lib/|
# Repos using Sphinx to generate docs don't need prettying
^docs/_templates/.*\.html$|
# You don't usually want a bot to modify your legal texts
(LICENSE.*|COPYING.*)
default_language_version:
python: python3
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: check-yaml
- id: end-of-file-fixer
- id: trailing-whitespace
- id: check-merge-conflict
- repo: https://github.com/psf/black
rev: 23.3.0 # Make sure to use the same tag/version as specified in tox.ini.
hooks:
- id: black
language_version: python3
- repo: https://github.com/pre-commit/mirrors-isort
rev: v5.10.1 # Make sure to use the same tag/version as specified in tox.ini.
hooks:
- id: isort
- repo: https://github.com/nbQA-dev/nbQA
rev: 1.7.0
hooks:
- id: nbqa-black
additional_dependencies: [black]
- id: nbqa-isort
additional_dependencies: [isort]
- repo: https://github.com/lyz-code/yamlfix/
rev: 1.9.0
hooks:
- id: yamlfix