File tree 4 files changed +23
-26
lines changed
4 files changed +23
-26
lines changed Original file line number Diff line number Diff line change 1
1
exclude : ' ^.*patches|.*\.cgi$'
2
2
default_language_version :
3
- python : " 3.9"
3
+ python : " 3.9"
4
4
repos :
5
- - repo : https://github.com/pre-commit/pre-commit-hooks
5
+ - repo : https://github.com/pre-commit/pre-commit-hooks
6
6
rev : v2.3.0
7
7
hooks :
8
- - id : check-yaml
9
- - id : end-of-file-fixer
10
- - id : trailing-whitespace
11
- - repo : https://github.com/psf/black
8
+ - id : check-yaml
9
+ - id : end-of-file-fixer
10
+ - id : trailing-whitespace
11
+ - repo : https://github.com/psf/black
12
12
rev : 20.8b1
13
13
hooks :
14
- - id : black
15
- - repo : https://gitlab.com/pycqa/flake8
14
+ - id : black
15
+ - repo : https://gitlab.com/pycqa/flake8
16
16
rev : 3.7.8
17
17
hooks :
18
- - id : flake8
18
+ - id : flake8
19
19
types : [file, python]
20
20
# only check for unused imports, as the rest is done by black
21
21
args : [--select=F401]
22
- - repo : https://github.com/pre-commit/mirrors-mypy
22
+ - repo : https://github.com/pre-commit/mirrors-mypy
23
23
rev : v0.812
24
24
hooks :
25
- - id : mypy
25
+ - id : mypy
26
26
args :
27
27
- --ignore-missing-imports
28
- - repo : local
28
+ - repo : local
29
29
hooks :
30
- - id : clang-format
30
+ - id : clang-format
31
31
name : clang-format-6.0
32
32
language : system
33
33
entry : ./tools/clang-format-precommit.sh
34
+
35
+ - repo : https://github.com/pre-commit/mirrors-prettier
36
+ rev : " v2.3.2" # Use the sha / tag you want to point at
37
+ hooks :
38
+ - id : prettier
Original file line number Diff line number Diff line change @@ -151,8 +151,7 @@ lint: node_modules/.installed
151
151
find src -type f -regex ' .*\.\(c\|h\)' \
152
152
| xargs clang-format-6.0 -output-replacements-xml \
153
153
| (! grep ' <replacement ' )
154
- npx prettier --check ` find src -type f -name ' *.js' -not -name ' *.gen.js' `
155
- npx prettier --check ` find src -type f -name ' *.html' `
154
+ npx prettier --check src --ignore-path ' *.gen.*'
156
155
black --check .
157
156
mypy --ignore-missing-imports \
158
157
pyodide-build/pyodide_build/ \
Original file line number Diff line number Diff line change @@ -76,10 +76,10 @@ async function main() {
76
76
expectType < void > ( px . destroy ( ) ) ;
77
77
expectType < any > ( px . toJs ( ) ) ;
78
78
expectType < any > ( px . toJs ( { } ) ) ;
79
- expectType < any > ( px . toJs ( { depth : 10 } ) ) ;
80
- expectType < any > ( px . toJs ( { create_pyproxies : false } ) ) ;
81
- expectType < any > ( px . toJs ( { create_pyproxies : true } ) ) ;
82
- expectType < any > ( px . toJs ( { pyproxies : [ ] } ) ) ;
79
+ expectType < any > ( px . toJs ( { depth : 10 } ) ) ;
80
+ expectType < any > ( px . toJs ( { create_pyproxies : false } ) ) ;
81
+ expectType < any > ( px . toJs ( { create_pyproxies : true } ) ) ;
82
+ expectType < any > ( px . toJs ( { pyproxies : [ ] } ) ) ;
83
83
expectType < string > ( px . toString ( ) ) ;
84
84
expectType < string > ( px . type ) ;
85
85
Original file line number Diff line number Diff line change @@ -5,10 +5,3 @@ if [ -n "$FILES" ]; then
5
5
clang-format-6.0 -verbose -i $FILES
6
6
git add $FILES
7
7
fi
8
-
9
- FILES=$( git diff --cached --name-only * .js ' *.html' )
10
- if [ -n " $FILES " ]; then
11
- # Change files, stage changes
12
- ./node_modules/.bin/prettier --write $FILES
13
- git add $FILES
14
- fi
You can’t perform that action at this time.
0 commit comments