-
Notifications
You must be signed in to change notification settings - Fork 1
Sourcery Starbot ⭐ refactored wallies/deadpool #1
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
base: main
Are you sure you want to change the base?
Conversation
| self.pid_callback(self._pid) | ||
| except Exception: # pragma: no cover | ||
| logger.exception(f"Error calling pid_callback") | ||
| logger.exception("Error calling pid_callback") |
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.
Function Future.pid refactored with the following changes:
- Replace f-string with no interpolated values with string (
remove-redundant-fstring)
| self.running_jobs.get_nowait() | ||
| except Empty: # pragma: no cover | ||
| logger.warning(f"Weird error, did not expect running jobs to be empty") | ||
| logger.warning("Weird error, did not expect running jobs to be empty") |
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.
Function Deadpool.run_process refactored with the following changes:
- Replace f-string with no interpolated values with string (
remove-redundant-fstring)
| initializer(*initargs) | ||
| except: | ||
| logger.exception(f"Initializer failed") | ||
| logger.exception("Initializer failed") |
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.
Function raw_runner refactored with the following changes:
- Replace f-string with no interpolated values with string [×2] (
remove-redundant-fstring)
|
|
||
| def test_abc(): | ||
| assert 1 == 1 | ||
| pass |
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.
Function test_abc refactored with the following changes:
- Remove
assert Truestatements (remove-assert-true) - Simplify x == x -> True and x != x -> False (
equality-identity)
Thanks for starring sourcery-ai/sourcery ✨ 🌟 ✨
Here's your pull request refactoring your most popular Python repo.
If you want Sourcery to refactor all your Python repos and incoming pull requests install our bot.
Review changes via command line
To manually merge these changes, make sure you're on the
mainbranch, then run: