/
.pre-commit-config.yaml
81 lines (71 loc) · 1.56 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
79
80
81
ci:
autofix_prs: false
autoupdate_schedule: quarterly
default_language_version:
node: 16.15.0
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.3.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: 22.6.0
hooks:
- id: black
- repo: https://github.com/nbQA-dev/nbQA
rev: 1.3.1
hooks:
- id: nbqa-black
additional_dependencies:
- black==22.6.0
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.4.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
- repo: https://github.com/asottile/pyupgrade
rev: v2.34.0
hooks:
- id: pyupgrade
args: [--keep-runtime-typing, --py38-plus]
files: ^plasmapy/