Upgrade pyupgrade for crlf fixes (again)#4281
Upgrade pyupgrade for crlf fixes (again)#4281nicoddemus merged 1 commit intopytest-dev:masterfrom asottile:bump_hooks
Conversation
|
Hahaha thanks for the lightning quick fix @asottile! 🙇 |
|
personally i appreciate having someone that's not me dedicated to the pain of yaml ^^ |
|
@RonnyPfannschmidt I feel ya, yaml is my biggest regret w/ pre-commit |
Oh really? I'm curious why you feel that way. Also, which alternatives would you use instead of yaml for pre-commit configuration? |
The biggest being that it can't be programmatically rewritten. There's also the sheer complexity (and slowness) of yaml -- the spec for json fits on a postcard, but yaml's is 84 pages. The default implementation of yaml has some famous security problems and unless you've got To be honest, I haven't found a better alternative. What I really want is some high level configuration that's fast, readable, and machine rewritable. json5 seems so close to what I want, but the parsers for python are an awful pile of pure python + regex and aren't round trippable. I even tried to invent my own config language and while it worked, it wasn't ever really production worthy (a fun exercise though, I learned a ton and wrote some cool toys). Maybe one day I'll have enough time to make |
Codecov Report
@@ Coverage Diff @@
## master #4281 +/- ##
==========================================
- Coverage 95.87% 95.65% -0.23%
==========================================
Files 109 109
Lines 24630 24630
Branches 2396 2396
==========================================
- Hits 23615 23560 -55
- Misses 720 759 +39
- Partials 295 311 +16
Continue to review full report at Codecov.
|
|
Thanks for the detailed write up! And what about toml? |
|
Also doesn't have a round-trip parser :( |
|
Hmm. About the roundtrip parser, conda uses ruamel.yaml. 👍 |
|
Yeah, I tried it it didn't quite cut it. Kinda funny though, from their overview page:
|
I promise I commit things to pytest other than changing this yaml file 😭