benmoran56 / esper

An ECS (Entity Component System) for Python
MIT License
537 stars 67 forks source link

Code style (PEP8 and more) #74

Closed Ball-Man closed 1 year ago

Ball-Man commented 1 year ago

Conformed code to existing guidelines, in particular:

Moreover, identity operator is is now used instead of equality comparison == for type checks (used in remove_processor, get_processor). When comparing types, this is semantically equivalent and should be generally faster.

benmoran56 commented 1 year ago

Thank you for the pull request.

I should have mentioned in the README, but style guide is basically "PEP8, except for strict line length limits. This only applies to the code, not the comments. Is it possible to revert only the line wrapping for code segments only? The other changes all look good.

Ball-Man commented 1 year ago

No problem at all

benmoran56 commented 1 year ago

Thank you very much!