Skip to content

Commit de8924f

Browse files
authored
Allow ruff-vscode to fix notebooks again (#2047)
1 parent b1e4e59 commit de8924f

File tree

3 files changed

+6
-7
lines changed

3 files changed

+6
-7
lines changed

.vscode/settings.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,17 @@
22
"[julia]": {
33
"editor.formatOnSave": true
44
},
5-
"notebook.formatOnSave.enabled": false,
5+
"notebook.formatOnSave.enabled": true,
66
"notebook.codeActionsOnSave": {
7-
// https://github.com/astral-sh/ruff-vscode/issues/593
8-
"source.fixAll.ruff": "never",
9-
"source.organizeImports.ruff": "never"
7+
"notebook.source.fixAll": "explicit",
8+
"notebook.source.organizeImports": "explicit"
109
},
1110
"[python]": {
1211
"editor.defaultFormatter": "charliermarsh.ruff",
1312
"editor.formatOnSave": true,
1413
"editor.codeActionsOnSave": {
15-
"source.fixAll": "explicit"
14+
"source.fixAll": "explicit",
15+
"source.organizeImports": "explicit"
1616
}
1717
},
1818
"mypy-type-checker.importStrategy": "fromEnvironment",

pixi.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ test-ribasim-core = { cmd = "julia --project=core --eval 'using Pkg; Pkg.test()'
7979
test-ribasim-migration = { cmd = "pytest --numprocesses=4 -m regression python/ribasim/tests" }
8080
test-ribasim-core-cov = { cmd = "julia --project=core --eval 'using Pkg; Pkg.test(coverage=true, julia_args=[\"--check-bounds=yes\"])'", depends-on = [
8181
"generate-testmodels",
82-
] }
82+
], env = { SSL_CERT_DIR = "", JULIA_SSL_CA_ROOTS_PATH = "" } }
8383
test-ribasim-regression = { cmd = "julia --project=core --eval 'using Pkg; Pkg.test(julia_args=[\"--check-bounds=yes\"], test_args=[\"regression\"])'", depends-on = [
8484
"generate-testmodels",
8585
"test-ribasim-migration",

ruff.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
exclude = ["ribasim_qgis/tomllib/*"]
2-
extend-include = ["*.ipynb"]
32
target-version = "py311"
43

54
[lint]

0 commit comments

Comments
 (0)