NREL / buildstockbatch

Other
22 stars 14 forks source link

Switch to python 3.11 #472

Closed rajeee closed 4 weeks ago

rajeee commented 1 month ago

Pull Request Description

Black stopped supporting python 3.8: https://github.com/psf/black/pull/4452. We can do the same as well, and make BSB use python 3.11 with support for 3.12. This allows us to use features introduced in later python version such as the union operator on dict and fine-grained error location.

Checklist

Not all may apply

rajeee commented 1 month ago

Alternatively we could drop support for python 3.8 altogether and add support for 3.12. I'm able to run on 3.12, but it gives some warnings.

I considered doing that but remembered your reservation about dropping 3.8 because some part of BSB AWS needing to run inside the openstudio container.