-
-
Notifications
You must be signed in to change notification settings - Fork 468
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
Format project to adhere to PEP8 standards and best practices #896
Conversation
# Conflicts: # discord/__init__.py # discord/bot.py # discord/opus.py # discord/threads.py # discord/voice_client.py
i.e. most (but not all) of these: https://github.com/sourcery-ai/sourcery/wiki/Current-Refactorings
# Conflicts: # discord/__main__.py # discord/abc.py # discord/activity.py # discord/asset.py # discord/bot.py # discord/client.py # discord/cog.py # discord/commands/core.py # discord/components.py # discord/ext/commands/converter.py # discord/ext/commands/flags.py # discord/flags.py # discord/guild.py # discord/integrations.py # discord/interactions.py # discord/iterators.py # discord/message.py # discord/player.py # discord/role.py # discord/scheduled_events.py # discord/state.py # discord/ui/button.py # discord/utils.py # discord/webhook/async_.py # discord/webhook/sync.py # discord/welcome_screen.py
This shouldn't contain any breaking changes, and has now been fairly well tested. All changes are simply to update the code to PEP8 standards, refactor and simplify conditionals, etc. I recommend that we merge this as soon as possible so that PRs can target a higher quality codebase and meet these standards. |
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.
A few notes
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.
This is the sexiest pr I have seen come out of this repo
# Conflicts: # discord/audit_logs.py # discord/bot.py # discord/cog.py # discord/commands/core.py # discord/components.py # discord/enums.py # discord/ext/commands/cog.py # discord/ext/commands/converter.py # discord/ext/commands/flags.py # discord/interactions.py # discord/state.py # discord/types/interactions.py # discord/types/message.py # discord/ui/__init__.py # discord/welcome_screen.py # examples/app_commands/slash_options.py
Summary
Update of #768 and #794 to include newer changes from
master
that couldn't easily be merged otherwise.Checklist
type: ignore
comments were used, a comment is also left explaining why