Skip to content
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

Merged
merged 11 commits into from
Feb 11, 2022
Merged

Format project to adhere to PEP8 standards and best practices #896

merged 11 commits into from
Feb 11, 2022

Conversation

krittick
Copy link
Contributor

Summary

Update of #768 and #794 to include newer changes from master that couldn't easily be merged otherwise.

Checklist

  • If code changes were made then they have been tested.
    • I have updated the documentation to reflect the changes.
  • If type: ignore comments were used, a comment is also left explaining why
  • This PR fixes an issue.
  • This PR adds something new (e.g. new method or parameters).
  • This PR is a breaking change (e.g. methods or parameters removed/renamed)
  • This PR is not a code change (e.g. documentation, README, typehinting, examples, ...)

@krittick krittick added priority: high High Priority status: awaiting review Awaiting review from a maintainer bypass-review Bypasses reviews for urgent pull requests involving critical code or documentation fixes. Merge with squash labels Jan 31, 2022
@krittick krittick added this to the v2.1 milestone Jan 31, 2022
@krittick krittick self-assigned this Jan 31, 2022
@krittick krittick changed the base branch from trunk/pep8 to master February 3, 2022 09:36
# Conflicts:
#	discord/__init__.py
#	discord/bot.py
#	discord/opus.py
#	discord/threads.py
#	discord/voice_client.py
# 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
@krittick
Copy link
Contributor Author

krittick commented Feb 6, 2022

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.

Copy link
Contributor

@UP929312 UP929312 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A few notes

discord/__main__.py Show resolved Hide resolved
discord/__main__.py Show resolved Hide resolved
@krittick krittick enabled auto-merge (squash) February 6, 2022 22:24
ImNimboss
ImNimboss previously approved these changes Feb 9, 2022
@ImNimboss
Copy link
Contributor

Relevant:

Maybe set up a brief period of time where no contributions are allowed for this PR to be merged - EmreTech, Pycord Discord server

Copy link

@KosmicAnomaly KosmicAnomaly left a 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bypass-review Bypasses reviews for urgent pull requests involving critical code or documentation fixes. priority: high High Priority status: awaiting review Awaiting review from a maintainer
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants