File tree 3 files changed +9
-17
lines changed
3 files changed +9
-17
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,3 @@ RUN touch README.md \
10
10
&& mkdir -p src/python_package \
11
11
&& python -m flit install --only-deps --deps develop \
12
12
&& rm -r pyproject.toml README.md src
13
-
14
- COPY .pre-commit-config.yaml .
15
- RUN git init . && pre-commit install-hooks
Original file line number Diff line number Diff line change 15
15
" ms-python.python" ,
16
16
" ms-python.vscode-pylance" ,
17
17
" ms-python.pylint" ,
18
+ " ms-python.isort" ,
18
19
" ms-python.flake8" ,
19
20
" ms-python.black-formatter" ,
20
21
" ms-vsliveshare.vsliveshare" ,
24
25
],
25
26
"settings" : {
26
27
"python.defaultInterpreterPath" : " /usr/local/bin/python" ,
27
- "python.formatting.provider" : " black" ,
28
- "[python]" : {
29
- "editor.defaultFormatter" : " ms-python.black-formatter"
30
- },
31
28
"black-formatter.path" : [
32
29
" /usr/local/py-utils/bin/black"
33
30
],
36
33
],
37
34
"flake8.path" : [
38
35
" /usr/local/py-utils/bin/flake8"
36
+ ],
37
+ "isort.path" : [
38
+ " /usr/local/py-utils/bin/isort"
39
39
]
40
40
}
41
41
}
42
- }
43
- }
42
+ },
43
+ "onCreateCommand" : " pre-commit install-hooks"
44
+ }
Original file line number Diff line number Diff line change 17
17
"pylint.args" : [
18
18
" --rcfile=pyproject.toml"
19
19
],
20
- "pylint.path" : [
21
- " /usr/local/py-utils/bin/pylint"
22
- ],
23
20
"black-formatter.args" : [
24
21
" --config=pyproject.toml"
25
22
],
26
- "black-formatter.path" : [
27
- " /usr/local/py-utils/bin/black"
28
- ],
29
23
"flake8.args" : [
30
24
" --toml-config=pyproject.toml"
31
25
],
32
- "flake8.path " : [
33
- " /usr/local/py-utils/bin/flake8 "
26
+ "isort.args " : [
27
+ " --settings-path=pyproject.toml "
34
28
]
35
29
}
You can’t perform that action at this time.
0 commit comments