-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
require Python 3.10 and associated ruff updates (#39)
This is a bit of a mixed bag of changes similar to which we merged in https://github.com/Deltares/Ribasim last weeks. First of all we now require at least Python 3.10. Before this was 3.9. The differences are not too big, but I don't think we need to spend out time supporting old Python versions at this moment, 3.10 is sufficiently old. Since we now tell ruff to target Python 3.10, and ask it to give syntax upgrade suggestions, we fix those. Most of this is nicer typing annotations, using e.g. `dict` instead of `from typing import Dict`. The ruff updates also includes some configuration to make it work well with notebooks. Lastly I removed the typos check. I don't think it is suitable for this repository as there are many Dutch terms used in the code and docs.
- Loading branch information
Showing
14 changed files
with
79 additions
and
89 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,9 @@ | ||
select = ["D", "E", "F", "NPY", "PD", "C4", "I"] | ||
# See https://docs.astral.sh/ruff/rules/ | ||
select = ["D", "E", "F", "NPY", "PD", "C4", "I", "UP"] | ||
ignore = ["D1", "D202", "D205", "D400", "D404", "E501", "PD002", "PD901"] | ||
fixable = ["I"] | ||
extend-include = ["*.ipynb"] | ||
target-version = "py310" | ||
|
||
[pydocstyle] | ||
convention = "numpy" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.