Skip to content

Conversation

@MatthieuBizien
Copy link

Remove from pyglet.gl import *, and replace it with from pyglet import gl, as it's not recommended in the PEP8.

Wildcard imports (from import *) should be avoided, as they make it unclear which names are present in the namespace, confusing both readers and many automated tools.

Like #35, I believe that project is a great educational tool, an impressive achievement, and a reference for clean Python code.

MatthieuBizien added a commit to MatthieuBizien/Minecraft that referenced this pull request Dec 18, 2020
Like fogleman#35, I believe that project is a great educational tool, an impressive achievement, and a reference for clean Python code.

Warnings F403 and F405 are currently ignored. That could be removed when fogleman#124 is merged.

Warnings E128,E201,E226,E231 could be removed if autopep8 or similar is used. I advise to merge fogleman#124 before, to limit the risk of merge conflict.

I fixed 3 small pep8 issues in main.py too.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant