-
Notifications
You must be signed in to change notification settings - Fork 46
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
chore: ruff improvements #359
Merged
Merged
Changes from 10 commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
1de1c4b
chore: changing the settings
negar-abbasi b609c90
chore: changing vscode settings and updating ruff
negar-abbasi d675127
chore: updating precommit and github workflow for python
negar-abbasi 09e18c4
fix: fixing some linting and formatting issues
negar-abbasi 31ce2f3
chore: updating the min required python checks
negar-abbasi 1454db4
chore: fix a ruff issue
negar-abbasi 59ffb1c
fix: fixing github flow issue
negar-abbasi 07e6c37
chore: ignore updating python in ruff
negar-abbasi 472e679
chore: remove unnecessary comments
negar-abbasi 8095b45
chore: PR reviews
negar-abbasi 58e53f7
chore: PR reviews
negar-abbasi 7a61107
fix: PR review
negar-abbasi 705b7d9
Merge remote-tracking branch 'origin/main' into refactor/ruff-improve…
negar-abbasi 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,34 @@ | ||
repos: | ||
- repo: local | ||
hooks: | ||
- id: black | ||
name: black | ||
description: "Black: The uncompromising Python code formatter" | ||
entry: poetry run black | ||
- id: ruff-format | ||
name: ruff-format | ||
description: "Run 'ruff format' for extremely fast Python formatting" | ||
entry: poetry run ruff format | ||
language: system | ||
minimum_pre_commit_version: 2.9.2 | ||
types: [python] | ||
args: [] | ||
require_serial: true | ||
types_or: [ python, pyi ] | ||
additional_dependencies: [] | ||
minimum_pre_commit_version: "0" | ||
- id: ruff | ||
name: ruff | ||
description: "Run 'ruff' for extremely fast Python linting" | ||
entry: poetry run ruff | ||
language: system | ||
'types': [python] | ||
"types": [python] | ||
args: [--fix] | ||
require_serial: false | ||
additional_dependencies: [] | ||
minimum_pre_commit_version: '0' | ||
files: '^(src|tests)/' | ||
minimum_pre_commit_version: "0" | ||
files: "^(src|tests)/" | ||
- id: mypy | ||
name: mypy | ||
description: '`mypy` will check Python types for correctness' | ||
description: "`mypy` will check Python types for correctness" | ||
entry: poetry run mypy | ||
language: system | ||
types_or: [ python, pyi ] | ||
types_or: [python, pyi] | ||
require_serial: true | ||
additional_dependencies: [ ] | ||
minimum_pre_commit_version: '2.9.2' | ||
files: '^(src|tests)/' | ||
additional_dependencies: [] | ||
minimum_pre_commit_version: "2.9.2" | ||
files: "^(src|tests)/" |
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.
You can probably remove the comment now.