Spaces:
Running
on
Zero
Running
on
Zero
Update
Browse files- .pre-commit-config.yaml +11 -6
- .vscode/settings.json +13 -4
.pre-commit-config.yaml
CHANGED
@@ -19,25 +19,30 @@ repos:
|
|
19 |
- id: docformatter
|
20 |
args: ["--in-place"]
|
21 |
- repo: https://github.com/pycqa/isort
|
22 |
-
rev: 5.
|
23 |
hooks:
|
24 |
- id: isort
|
25 |
args: ["--profile", "black"]
|
26 |
- repo: https://github.com/pre-commit/mirrors-mypy
|
27 |
-
rev: v1.
|
28 |
hooks:
|
29 |
- id: mypy
|
30 |
args: ["--ignore-missing-imports"]
|
31 |
additional_dependencies:
|
32 |
-
[
|
|
|
|
|
|
|
|
|
|
|
33 |
- repo: https://github.com/psf/black
|
34 |
-
rev:
|
35 |
hooks:
|
36 |
- id: black
|
37 |
language_version: python3.10
|
38 |
args: ["--line-length", "119"]
|
39 |
- repo: https://github.com/kynan/nbstripout
|
40 |
-
rev: 0.
|
41 |
hooks:
|
42 |
- id: nbstripout
|
43 |
args:
|
@@ -46,7 +51,7 @@ repos:
|
|
46 |
"metadata.interpreter metadata.kernelspec cell.metadata.pycharm",
|
47 |
]
|
48 |
- repo: https://github.com/nbQA-dev/nbQA
|
49 |
-
rev: 1.7.
|
50 |
hooks:
|
51 |
- id: nbqa-black
|
52 |
- id: nbqa-pyupgrade
|
|
|
19 |
- id: docformatter
|
20 |
args: ["--in-place"]
|
21 |
- repo: https://github.com/pycqa/isort
|
22 |
+
rev: 5.13.2
|
23 |
hooks:
|
24 |
- id: isort
|
25 |
args: ["--profile", "black"]
|
26 |
- repo: https://github.com/pre-commit/mirrors-mypy
|
27 |
+
rev: v1.8.0
|
28 |
hooks:
|
29 |
- id: mypy
|
30 |
args: ["--ignore-missing-imports"]
|
31 |
additional_dependencies:
|
32 |
+
[
|
33 |
+
"types-python-slugify",
|
34 |
+
"types-requests",
|
35 |
+
"types-PyYAML",
|
36 |
+
"types-pytz",
|
37 |
+
]
|
38 |
- repo: https://github.com/psf/black
|
39 |
+
rev: 24.2.0
|
40 |
hooks:
|
41 |
- id: black
|
42 |
language_version: python3.10
|
43 |
args: ["--line-length", "119"]
|
44 |
- repo: https://github.com/kynan/nbstripout
|
45 |
+
rev: 0.7.1
|
46 |
hooks:
|
47 |
- id: nbstripout
|
48 |
args:
|
|
|
51 |
"metadata.interpreter metadata.kernelspec cell.metadata.pycharm",
|
52 |
]
|
53 |
- repo: https://github.com/nbQA-dev/nbQA
|
54 |
+
rev: 1.7.1
|
55 |
hooks:
|
56 |
- id: nbqa-black
|
57 |
- id: nbqa-pyupgrade
|
.vscode/settings.json
CHANGED
@@ -1,11 +1,16 @@
|
|
1 |
{
|
|
|
|
|
2 |
"[python]": {
|
3 |
"editor.defaultFormatter": "ms-python.black-formatter",
|
4 |
"editor.formatOnType": true,
|
5 |
"editor.codeActionsOnSave": {
|
6 |
-
"source.organizeImports":
|
7 |
}
|
8 |
},
|
|
|
|
|
|
|
9 |
"black-formatter.args": [
|
10 |
"--line-length=119"
|
11 |
],
|
@@ -13,9 +18,13 @@
|
|
13 |
"flake8.args": [
|
14 |
"--max-line-length=119"
|
15 |
],
|
16 |
-
"ruff.args": [
|
17 |
"--line-length=119"
|
18 |
],
|
19 |
-
"
|
20 |
-
"
|
|
|
|
|
|
|
|
|
21 |
}
|
|
|
1 |
{
|
2 |
+
"editor.formatOnSave": true,
|
3 |
+
"files.insertFinalNewline": false,
|
4 |
"[python]": {
|
5 |
"editor.defaultFormatter": "ms-python.black-formatter",
|
6 |
"editor.formatOnType": true,
|
7 |
"editor.codeActionsOnSave": {
|
8 |
+
"source.organizeImports": "explicit"
|
9 |
}
|
10 |
},
|
11 |
+
"[jupyter]": {
|
12 |
+
"files.insertFinalNewline": false
|
13 |
+
},
|
14 |
"black-formatter.args": [
|
15 |
"--line-length=119"
|
16 |
],
|
|
|
18 |
"flake8.args": [
|
19 |
"--max-line-length=119"
|
20 |
],
|
21 |
+
"ruff.lint.args": [
|
22 |
"--line-length=119"
|
23 |
],
|
24 |
+
"notebook.output.scrolling": true,
|
25 |
+
"notebook.formatOnCellExecution": true,
|
26 |
+
"notebook.formatOnSave.enabled": true,
|
27 |
+
"notebook.codeActionsOnSave": {
|
28 |
+
"source.organizeImports": "explicit"
|
29 |
+
}
|
30 |
}
|