SethBling / cbscript

CBScript for Minecraft
1.13k stars 28 forks source link

Refactoring and Enhancement for Python 3.11 Compatibility #8

Closed DylanMcBean closed 4 months ago

DylanMcBean commented 4 months ago

This pull request introduces several updates to the codebase for compatibility with Python 3.11 and overall enhancements. Please note that due to the adoption of new syntax and features, these changes are not backwards compatible. Below are the key changes:

  1. Compatibility Update for Python 3.11: The code has been refactored to work specifically with Python 3.11, taking advantage of the latest features and improvements of this Python release.
  2. F-string Implementation: I have replaced all instances of the older .format() syntax with Python 3.6+'s F-strings for better performance and improved code readability.
  3. Addition of a Mini Test Harness: To improve the testing process, a mini test harness has been implemented. This harness aims to make it simple to quickly test that scripts still compile if changes are made
  4. Extended .gitignore: The .gitignore file has been updated to exclude additional files and directories that are not necessary for version control, thus keeping our repository clean and avoiding clutter.

The updates may require users to migrate to Python 3.11 to ensure compatibility. Reviewers are encouraged to check the compatibility of their systems and dependencies before merging these changes. Feedback and further suggestions are welcome to ensure that the transition is as smooth as possible for all stakeholders.

SethBling commented 4 months ago

I'll definitely take a look at this. I think moving to python 3 would be a great first step.

SethBling commented 4 months ago

I'm prepared to accept this pull request, if you:

I appreciate this work, I think it'll be a great step toward making the codebase a bit more manageable!