-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Migrate from isort/Black/Flake8 to Ruff for Code Formatting and Linting #5424
Merged
Commits on Sep 21, 2024
-
Configuration menu - View commit details
-
Copy full SHA for f8ef223 - Browse repository at this point
Copy the full SHA f8ef223View commit details -
Configuration menu - View commit details
-
Copy full SHA for 06a5eca - Browse repository at this point
Copy the full SHA 06a5ecaView commit details -
Configuration menu - View commit details
-
Copy full SHA for 85a17ee - Browse repository at this point
Copy the full SHA 85a17eeView commit details -
- Fix imports - Fix pytest issues - Do not assign lambda as variable - Use isinstance instead of type to check type - Rename ambiguously named variables - Name custom errors with Error suffix
Configuration menu - View commit details
-
Copy full SHA for f36bc49 - Browse repository at this point
Copy the full SHA f36bc49View commit details -
Remove some lint exclusions and fix the issues
* Replace `noqa` comments in `assert...` method definitions with a configuration option to ignore these names. * Use the `__all__` variable to specify importable items from the module, replacing `*` imports and `noqa` comments for unused imports. * Address issues with poorly named variables and methods by renaming them appropriately.
Configuration menu - View commit details
-
Copy full SHA for 5f78d1b - Browse repository at this point
Copy the full SHA 5f78d1bView commit details -
Replace OrderedEnum with a builtin IntEnum
The variable in `test_ordered_enum` was flagged for naming issues, and I noticed that `OrderedEnum` is essentially `enum.IntEnum`. I guess `OrderedEnum` exists because it was created before `enum.IntEnum` was made available in Python 3.4. We do not need it anymore though, so it's now gone.
Configuration menu - View commit details
-
Copy full SHA for fe4d492 - Browse repository at this point
Copy the full SHA fe4d492View commit details -
Add .git-blame-ignore-revs file to ignore specific commits in git blame
This commit introduces a `.git-blame-ignore-revs` file to the repository. The purpose of this file is to list specific commit hashes that should be ignored when using the `git blame` command. This is useful for ignoring commits that involve large-scale formatting changes, refactoring, or other non-functional changes that would otherwise clutter the blame history. I added a couple of previous commit hashes which reformatted the code. Configure this repository to use this file: git config --local blame.ignoreRevsFile .git-blame-ignore-revs
Configuration menu - View commit details
-
Copy full SHA for 962c128 - Browse repository at this point
Copy the full SHA 962c128View commit details -
Configuration menu - View commit details
-
Copy full SHA for edeb430 - Browse repository at this point
Copy the full SHA edeb430View commit details -
Configuration menu - View commit details
-
Copy full SHA for 11fa6c7 - Browse repository at this point
Copy the full SHA 11fa6c7View commit details
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.