forked from PlasmaPy/PlasmaPy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
78 lines (69 loc) · 1.59 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
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
ci:
autofix_prs: false
autoupdate_schedule: quarterly
# using default_language_version
default_language_version:
node: 16.15.0
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.1.0
hooks:
- id: check-ast
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-merge-conflict
exclude: .*\.rst
- id: requirements-txt-fixer
- id: check-symlinks
- id: check-case-conflict
- id: check-json
- id: check-toml
- id: check-yaml
- repo: https://github.com/PyCQA/isort
rev: 5.10.1
hooks:
- id: isort
name: isort
entry: isort
require_serial: true
language: python
types:
- python
- repo: https://github.com/psf/black
rev: 21.12b0
hooks:
- id: black
additional_dependencies:
- click<8.1 # remove this when black is next updated
- repo: https://github.com/nbQA-dev/nbQA
rev: 1.3.1
hooks:
- id: nbqa-black
additional_dependencies:
- black==21.12b0
- click<8.1 # remove this when black is next updated
args:
- --nbqa-mutate
- id: nbqa-isort
additional_dependencies:
- isort==5.10.1
args:
- --nbqa-mutate
- repo: https://github.com/macisamuele/language-formatters-pre-commit-hooks
rev: v2.3.0
hooks:
- id: pretty-format-ini
args: [--autofix]
- id: pretty-format-toml
args: [--autofix]
- id: pretty-format-yaml
args: [--autofix]
- repo: https://github.com/pre-commit/mirrors-csslint
rev: v1.0.5
hooks:
- id: csslint
- repo: https://github.com/MarcoGorelli/absolufy-imports
rev: v0.3.1
hooks:
- id: absolufy-imports
exclude: docs/plasmapy_sphinx