GrafeasGroup / tor

Community curation bot for /r/TranscribersOfReddit
https://reddit.com/r/transcribersofreddit
MIT License
39 stars 15 forks source link

Make linting consistent with blossom #370

Closed TimJentzsch closed 1 year ago

TimJentzsch commented 1 year ago

This PR ports over the linting setup from Blossom to ToR, to have a consistent setup across all our repositories.

itsthejoker commented 1 year ago

Pytz is deprecated - we'll need to use zoneinfo instead. https://docs.python.org/3/library/zoneinfo.html

TimJentzsch commented 1 year ago

Pytz is deprecated - we'll need to use zoneinfo instead. https://docs.python.org/3/library/zoneinfo.html

Nice, didn't know this was a built-in thing! I ended up using datetime.timezone.utc which is a nice replacement. I'll open up an issue to migrate for blossom and buttercup as well.

itsthejoker commented 1 year ago

And I didn't know that datetime.timezone.utc was a thing! 🎉