-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
83 lines (81 loc) · 2 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
82
83
- repo: local
hooks:
- id: yapf
name: yapf
entry: yapf
language: system
types: [python]
args: ["-i"]
exclude: &exclude_files >
(?x)^(
aiida-export-migration-tests/.qm/*.*|
)$
# modernizer: make sure our code-base is Python 3 ready
- repo: https://github.com/python-modernize/python-modernize.git
sha: a234ce4e185cf77a55632888f1811d83b4ad9ef2
hooks:
- id: python-modernize
exclude: >
(?x)^(
.qm/.*|
)$
args:
- --write
- --nobackups
# Following are all the fixers in python-modernize.
# Those marked as 'done' were run at some point and their results checked
# and incorporated if necessary, but they can't be applied without breaking valid cases
- --fix=apply
- --fix=except
- --fix=exec
- --fix=execfile
- --fix=exitfunc
- --fix=funcattrs
#done: - --fix=has_key
#optional: - --fix=idioms
#done: - --fix=long
- --fix=methodattrs
- --fix=ne
- --fix=numliterals
- --fix=operator
- --fix=paren
- --fix=reduce
- --fix=renames
- --fix=repr
#optional: - --fix=set_literal
- --fix=standarderror
- --fix=sys_exc
- --fix=throw
- --fix=tuple_params
- --fix=types
#optional: - --fix=ws_comma
- --fix=xreadlines
- --fix=basestring
- --fix=classic_division
#done: - --fix=dict_six
- --fix=file
- --fix=filter
- --fix=import
- --fix=imports_six
- --fix=input_six
- --fix=int_long_tuple
- --fix=itertools_imports_six
- --fix=itertools_six
- --fix=map
- --fix=metaclass
- --fix=next
#optional: - --fix=open
- --fix=print
- --fix=raise
- --fix=raise_six
- --fix=unichr
- --fix=unicode
- --fix=unicode_future
- --fix=unicode_type
- --fix=urllib_six
- --fix=xrange_six
- --fix=zip
- repo: git://github.com/pre-commit/pre-commit-hooks
sha: v1.1.1
hooks:
- id: check-yaml