-
Notifications
You must be signed in to change notification settings - Fork 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
Sourcery Starbot ⭐ refactored alchemist09/inventory-management #1
base: master
Are you sure you want to change the base?
Conversation
cfg = os.path.join(os.getcwd(), 'config', config_name + '.py') | ||
cfg = os.path.join(os.getcwd(), 'config', f'{config_name}.py') |
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 create_app
refactored with the following changes:
- Use f-string instead of string concatenation (
use-fstring-for-concatenation
)
users = User.query.all()[1:] | ||
return users | ||
return User.query.all()[1:] |
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 User.find_all
refactored with the following changes:
- Inline variable that is immediately returned (
inline-immediately-returned-variable
)
assets = Asset.query.all() | ||
return assets | ||
return Asset.query.all() |
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 Asset.find_all
refactored with the following changes:
- Inline variable that is immediately returned (
inline-immediately-returned-variable
)
assets = Asset.query.filter_by(assigned=False).all() | ||
return assets | ||
return Asset.query.filter_by(assigned=False).all() |
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 Asset.find_unassigned_items
refactored with the following changes:
- Inline variable that is immediately returned (
inline-immediately-returned-variable
)
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
master
branch, then run: