-
Notifications
You must be signed in to change notification settings - Fork 38
Linting and formatting: add Ruff #1000
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
64 commits
Select commit
Hold shift + click to select a range
4d42bb8
ruff in pyproject, pre-commit, notebooks not fixed yet. Pylint needs …
Laurynas-Jagutis 4c91f43
add fixes to notebooks
Laurynas-Jagutis e4f1a84
remove local pylint, add ruff ignore based on file location
Laurynas-Jagutis b32e306
change lambdas
Laurynas-Jagutis dffdfe9
pyproject.toml clean up
Laurynas-Jagutis 1877a6d
final ruff fixes, pyproject.toml clean up
Laurynas-Jagutis 5ff504f
clear outputs from validation examples
Laurynas-Jagutis d3c98fb
adjust ruff version
Laurynas-Jagutis 78f3116
adjust python version and ruff version
Laurynas-Jagutis 27675e3
conflict resolution?
Laurynas-Jagutis 4a98bf5
remove the required ruff version, restart the notebook
Laurynas-Jagutis 302d412
reset execution count of power flow example
Laurynas-Jagutis 3dfe13a
minor
Laurynas-Jagutis e8f99d0
fix importing when multiple as is used
Laurynas-Jagutis 96cc042
add comment
Laurynas-Jagutis e52bac9
rerun state estimation notebook
Laurynas-Jagutis 8d8d5e6
rerun state estimation notebook
Laurynas-Jagutis c84e67c
change python version to 3.11 in pyproject
Laurynas-Jagutis 78f7d63
adjust E402 filter
Laurynas-Jagutis 4aa04de
add SIM checks, but ignore them
Laurynas-Jagutis abccc35
rerun validation examples notebook
Laurynas-Jagutis 837576d
rerun validation examples, change absolute path into relative
Laurynas-Jagutis 86c8e3f
fix version and relative paths
Laurynas-Jagutis 37307b2
make sure that pre-commit has been run on all files
Laurynas-Jagutis dcfaf4d
fix errors in code after merging main
Laurynas-Jagutis 069d28c
adjust pre-commit to include fixes
Laurynas-Jagutis 5602c10
adjust pre-commit to remove fix from formatter
Laurynas-Jagutis 171e8e3
applying final fixes
Laurynas-Jagutis b7e8a40
ruff in pyproject, pre-commit, notebooks not fixed yet. Pylint needs …
Laurynas-Jagutis 2478050
add fixes to notebooks
Laurynas-Jagutis 44b3f87
remove local pylint, add ruff ignore based on file location
Laurynas-Jagutis a64f566
change lambdas
Laurynas-Jagutis c3e0bf4
pyproject.toml clean up
Laurynas-Jagutis eb28ba3
final ruff fixes, pyproject.toml clean up
Laurynas-Jagutis 13c7b6b
clear outputs from validation examples
Laurynas-Jagutis 9ce8005
adjust ruff version
Laurynas-Jagutis 5118328
adjust python version and ruff version
Laurynas-Jagutis 12c8521
conflict resolution?
Laurynas-Jagutis fb1f962
remove the required ruff version, restart the notebook
Laurynas-Jagutis fcc1671
reset execution count of power flow example
Laurynas-Jagutis b042d02
minor
Laurynas-Jagutis e6dee6a
fix importing when multiple as is used
Laurynas-Jagutis 8151dd3
add comment
Laurynas-Jagutis 7eee25e
rerun state estimation notebook
Laurynas-Jagutis 3e0dc98
rerun state estimation notebook
Laurynas-Jagutis 44cfff3
change python version to 3.11 in pyproject
Laurynas-Jagutis cfab98b
adjust E402 filter
Laurynas-Jagutis b8cea09
add SIM checks, but ignore them
Laurynas-Jagutis f69236c
rerun validation examples notebook
Laurynas-Jagutis f11ad76
rerun validation examples, change absolute path into relative
Laurynas-Jagutis 44e4981
fix version and relative paths
Laurynas-Jagutis c6e03c0
make sure that pre-commit has been run on all files
Laurynas-Jagutis bfad930
fix errors in code after merging main
Laurynas-Jagutis 7e9172b
adjust pre-commit to include fixes
Laurynas-Jagutis bc07657
adjust pre-commit to remove fix from formatter
Laurynas-Jagutis f5a7d70
applying final fixes
Laurynas-Jagutis d90d853
remove pylint comments
Laurynas-Jagutis 76f5626
Merge branch 'feature/add-ruff' of https://github.com/PowerGridModel/…
Laurynas-Jagutis 6e5d3df
remove pylint comments from generator and generated files
Laurynas-Jagutis 26d2f8d
Merge remote-tracking branch 'origin/main' into feature/add-ruff
Laurynas-Jagutis 038f196
add no sonar
Laurynas-Jagutis 191a5fa
remove a file which was removed on main
Laurynas-Jagutis ea8e4f6
Merge remote-tracking branch 'origin/fix/mypy-version' into feature/a…
Laurynas-Jagutis 129dd46
Merge remote-tracking branch 'origin/main' into feature/add-ruff
Laurynas-Jagutis File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.