Pinned Tweet
I probably won't be checking this very often so if you need me I'm `asottile` on discord
Anthony Sottile retweeted
[partial outage] the pre-commit.ci website is unreachable for parts of the world. runs are still flowing so it appears to be limited to web reachability through cloudflare -- more details groups.google.com/u/3/g/pre-…
Anthony Sottile retweeted
pre-commit ci now has python 3.12 support (and python 3.7 has been removed) -- full details here: groups.google.com/u/3/g/pre-…
infuriating that @github support would send me confidently-wrong obviously AI generated garbage in response to reporting a regression
Anthony Sottile retweeted
pre-commit ci lite is now available for private repositories! python 2 has also been removed -- check out the full details here: groups.google.com/u/3/g/pre-…
Anthony Sottile retweeted
Well I did it. I changed my life. I've made a lot of mistakes in my life but quitting drinking for six and half years to focus on getting my BS in CS was not one of them. 2 weeks in the books as a SWE. Shout out @codewithanthony.
interesting problem... @pre_commit_ci is so fast that sometimes github records the statuses out of order
Anthony Sottile retweeted
🍿 Check out @codewithanthony ’s review of changes coming in Python 3.12. A great reference with some lovely tidbits.
youtube.com/watch?v=IV8OZY41…
itertools.batched made its way into python 3.12... but it's kinda? bad? it doesn't have any sort of size checking so it'll do all the work until the last chunk is the wrong size *and then error*
flake8 6.1 has been released! this adds support for python 3.12 among other things -- flake8.pycqa.org/en/latest/r…
Anthony Sottile retweeted
Replying to @codewithanthony
@codewithanthony thank you for pre-commit.ci!
I added it for a new repo and went to check on a build, and the job was already done before I had even managed to click the link to the build run.
It's awesome!
wellp. python 3.12 `type x = ...` aliases won't be auto-rewritable because they can't be used equivalently :(
>>> type a = int
>>> isinstance(1, a)
...
TypeError: isinstance() arg 2 must be a type, a tuple of types, or a union
github.com/asottile/pyupgrad…
hooray it's getting reverted github.com/python/cpython/pu…
oops, python is javascript now docs.python.org/3.12/library…
whether you're new to git or an experienced veteran -- @AdamChainz's new book "Boost Your Git DX" has something for everyone! (even I learned a cool new thing: `git config --show-origin`): adamchainz.gumroad.com/l/byg…
I'll be streaming in ~15 minutes! going to try and fix pycodestyle / pyflakes for 3.12 breakages -- stop by and chat! twitch.tv/anthonywritescode






