alphacyberranger@sh.itjust.works to Programmer Humor@programming.dev · 1 year agoThe lengths we have to go tosh.itjust.worksimagemessage-square117fedilinkarrow-up11.17Karrow-down129
arrow-up11.14Karrow-down1imageThe lengths we have to go tosh.itjust.worksalphacyberranger@sh.itjust.works to Programmer Humor@programming.dev · 1 year agomessage-square117fedilink
minus-squareGBU_28@lemm.eelinkfedilinkEnglisharrow-up8·1 year agoWith things like black, flake 8 and Isort I can code however I want, list/format however I want, and commit team compliant content. The dream is real
minus-squaretheneverfox@pawb.sociallinkfedilinkEnglisharrow-up1·1 year agoWait wait wait, what is this black magic and how have I not heard of it?
minus-squareGBU_28@lemm.eelinkfedilinkEnglisharrow-up1·1 year agoSo you can have a local, and a team config. So at time of commit the code rules your team has selected are enforced. So if I looked at my code, on GitHub, it would look as expected by the team. If I load it locally, it formats as I like. Check out the cicd stuff on PRs for github
With things like black, flake 8 and Isort I can code however I want, list/format however I want, and commit team compliant content. The dream is real
Wait wait wait, what is this black magic and how have I not heard of it?
So you can have a local, and a team config. So at time of commit the code rules your team has selected are enforced. So if I looked at my code, on GitHub, it would look as expected by the team.
If I load it locally, it formats as I like.
Check out the cicd stuff on PRs for github