Skip to content

Conversation

@visr
Copy link
Member

@visr visr commented Feb 9, 2025

No description provided.

test-ribasim-core-cov = { cmd = "julia --project=core --eval 'using Pkg; Pkg.test(coverage=true, julia_args=[\"--check-bounds=yes\"])'", depends-on = [
"generate-testmodels",
] }
], env = { SSL_CERT_DIR = "", JULIA_SSL_CA_ROOTS_PATH = "" } }
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unrelated, but this is needed to be able to use branches in our Manifest.toml, found in #2046.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could this break other uses cases (TC?) and if needed, for branches, it would probably be required for all Julia related tasks, not just core-cov?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No this is just when Pkg uses LibGit2 to checkout a branch. The other tasks that may need this already have this set. We can remove this again when JuliaLang/julia#56924 is merged.

Comment on lines +5 to +8
"notebook.formatOnSave.enabled": true,
"notebook.codeActionsOnSave": {
// https://github.com/astral-sh/ruff-vscode/issues/593
"source.fixAll.ruff": "never",
"source.organizeImports.ruff": "never"
"notebook.source.fixAll": "explicit",
"notebook.source.organizeImports": "explicit"
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was disabled due to the linked issue. Prefixing notebook as suggested there fixes the problem for me. The postfix ruff is removed, It is a way for ruff-vscode to avoid allowing other extensions to run on-save. That is not the default way to do it and I don't think there is an issue with that.

Comment on lines +14 to +15
"source.fixAll": "explicit",
"source.organizeImports": "explicit"
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lets do this as well, rather than wait for pre-commit to do it.

@@ -1,5 +1,4 @@
exclude = ["ribasim_qgis/tomllib/*"]
extend-include = ["*.ipynb"]
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@visr visr merged commit de8924f into main Feb 10, 2025
25 checks passed
@visr visr deleted the ruff-config branch February 10, 2025 12:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants