@@ -5,7 +5,7 @@ exclude: |
5
5
# Files and folders generated by bots, to avoid loops
6
6
^setup/|/static/description/index\.html$|
7
7
# We don't want to mess with tool-generated files
8
- .svg$|
8
+ .svg$|/tests/([^/]+/)?cassettes/|
9
9
# Maybe reactivate this when all README files include prettier ignore tags?
10
10
^README\.md$|
11
11
# Library files can have extraneous formatting (even minimized)
@@ -38,7 +38,13 @@ repos:
38
38
rev : v1.4
39
39
hooks :
40
40
- id : autoflake
41
- args : ["-i", "--ignore-init-module-imports"]
41
+ args :
42
+ - --expand-star-imports
43
+ - --ignore-init-module-imports
44
+ - --in-place
45
+ - --remove-all-unused-imports
46
+ - --remove-duplicate-keys
47
+ - --remove-unused-variables
42
48
- repo : https://github.com/psf/black
43
49
rev : 20.8b1
44
50
hooks :
@@ -47,12 +53,13 @@ repos:
47
53
rev : v2.1.2
48
54
hooks :
49
55
- id : prettier
50
- name : prettier + plugin-xml
56
+ name : prettier (with plugin-xml)
51
57
additional_dependencies :
52
58
- " prettier@2.1.2"
53
59
- " @prettier/plugin-xml@0.12.0"
54
60
args :
55
61
- --plugin=@prettier/plugin-xml
62
+ files : \.(css|htm|html|js|json|jsx|less|md|scss|toml|ts|xml|yaml|yml)$
56
63
- repo : https://github.com/pre-commit/mirrors-eslint
57
64
rev : v7.8.1
58
65
hooks :
87
94
rev : v2.7.2
88
95
hooks :
89
96
- id : pyupgrade
97
+ args : ["--keep-percent-format"]
90
98
- repo : https://github.com/PyCQA/isort
91
99
rev : 5.5.1
92
100
hooks :
@@ -109,13 +117,7 @@ repos:
109
117
rev : 3.8.3
110
118
hooks :
111
119
- id : flake8
112
- name : flake8 except __init__.py
113
- exclude : /__init__\.py$
114
- additional_dependencies : ["flake8-bugbear==20.1.4"]
115
- - id : flake8
116
- name : flake8 only __init__.py
117
- args : ["--extend-ignore=F401"] # ignore unused imports in __init__.py
118
- files : /__init__\.py$
120
+ name : flake8
119
121
additional_dependencies : ["flake8-bugbear==20.1.4"]
120
122
- repo : https://github.com/PyCQA/pylint
121
123
rev : pylint-2.5.3
0 commit comments