-
Notifications
You must be signed in to change notification settings - Fork 4
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
Rewrite it in Rust: Ruff as alternative Linter #28
Open
DavidSchischke
wants to merge
13
commits into
HotSprings-GmbH:main
Choose a base branch
from
DavidSchischke:ruff
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
9b7d5f1
feat: install option for ruff
16eb537
feat: added ruff to hooks and pyproject toml
3a68569
feat: added ruff to hooks and pyproject toml
ed7041c
feat: added conditional file removal for .pylintrc
02bd4a9
feat: ruff.toml added as parallel to .pylintrc
0f6a4d5
feat: ruff ipynb integration via nbqa
4ae989c
feat: bump code quality tooling
FabianScheidt 4b92c0c
fix: duplicate nbqa after rebase in repo env
DavidSchischke 3f6ab2b
fix: conditional nbqa step in pre-commit pipeline
DavidSchischke c2a45b0
fix: improved conditional file handling for pylint/ruff + cicd
DavidSchischke 0ccf8e3
fix: exclude cookiecutter repo from outer loop pre-commit hooks
DavidSchischke f874c77
feat: pytest for cicd, linter, jupyter + random env selection
DavidSchischke e7b7d3b
chore: bump ruff version
DavidSchischke 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 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
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
[pytest] | ||
log_cli = true | ||
log_cli_level = DEBUG | ||
log_cli_format = %(asctime)s %(levelname)s %(message)s | ||
log_cli_date_format = %Y-%m-%d %H:%M:%S |
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
File renamed without changes.
File renamed without changes.
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 |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# sync with black | ||
line-length = 100 | ||
|
||
# No need for NBQA as ruff has native Jupyter support | ||
extend-include = ["*.ipynb"] | ||
|
||
# https://docs.astral.sh/ruff/rules/ | ||
ignore = [ | ||
# "E501", # Line too long, handled by black | ||
# "W291", # Trailing whitespace, handled by black | ||
# "W292", # Missing final newline, handled by black | ||
# "PLR0904", # Too many public methods | ||
# "PLR0911", # Too many return statements | ||
# "PLR0913", # Too many arguments | ||
# "PLC0415", # Import outside toplevel | ||
# NA as checks yet but mentioned in github comments | ||
# "C0305", # Trailing newlines, handled by black | ||
# "C0114", # Missing module docstring | ||
# "C0115", # Missing class docstring | ||
# "C0116", # Missing function docstring | ||
# "R0902", # Too many instance attributes | ||
# "R0903", # Too few public methods | ||
# "R0914", # Too many locals | ||
# "W0124", # Confusing with statement | ||
# "C0413", # Wrong import position | ||
# "C0410", # Multiple imports | ||
# "R1705", # No else return | ||
# "W0201", # Attribute defined outside init | ||
# "E1123", # Unexpected keyword arg | ||
# "C0401", # Wrong spelling in comment | ||
# "C0402", # Wrong spelling in docstring | ||
# "C0403" # Invalid character in docstring | ||
] |
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.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think isort is running in a separate pre-commit check and is not related to pylint.