Readit News logoReadit News
timothycrosley commented on Boring Python: Code quality   b-list.org/weblog/2022/de... · Posted by u/masenf
bombolo · 3 years ago
No. Seems they changed the default ordering
timothycrosley · 3 years ago
Hi! I said this with more certainty than I should have. Software can always have bugs! For reference, I wrote isort, and my response came from the perspective that I have certainly worked very hard to ensure it doesn't have any behavior that is random or non-deterministic. From your description, it sounds like someone may have turned on force-alphabetical-sort (if this is in a single project). See: https://pycqa.github.io/isort/docs/configuration/options.htm.... You can do `isort . --show-config `, to introspect the config options isort finds and where it finds them from within a project directory. The other thing I could think of, is coming from isort 4 -> 5, I wouldn't think it would fully ignore import groupings, but maybe it doesn't find something it used to find automagically from the environment for determining a first_party import. If that's the case this guide may be helpful: https://pycqa.github.io/isort/docs/upgrade_guides/5.0.0.html. If none of this helps, I'd be happy to help you diagnose what your seeing.
timothycrosley commented on Boring Python: Code quality   b-list.org/weblog/2022/de... · Posted by u/masenf
bombolo · 3 years ago
It did this to me today…
timothycrosley · 3 years ago
Are you using any custom settings?
timothycrosley commented on Boring Python: Code quality   b-list.org/weblog/2022/de... · Posted by u/masenf
anderskaseorg · 3 years ago
If you aren’t happy with Flake8, Pylint, and isort (or maybe if you are!), I recommend checking out Ruff:

https://github.com/charliermarsh/ruff

It’s literally 100 times faster, with comparable coverage to Flake8 plus dozens of plugins, automatic fixes, and very active development.

timothycrosley · 3 years ago
FWIW, I wrote isort, but am seriously considering migrating my projects to use Ruff. Long term I think the design is just better over the variety of tools we use within the Python ecosystem today. The fact we have a plethora of projects that are meant to run per a commit with each one reparsing the AST independently, and often using a different approach to do so, just feels untenable long term to me.
timothycrosley commented on Boring Python: Code quality   b-list.org/weblog/2022/de... · Posted by u/masenf
bombolo · 3 years ago
> I recommend using two tools together: Black and isort.

Black formats things differently depending on the version. So a project with 2 developers, one running arch and one running ubuntu, will get formatted back and forth.

isort's completely random… For example the latest version I tried decided to alphabetically sort all the imports, regardless if they are part of standard library or 3rd party. This is a big change of behaviour from what it was doing before.

All those big changes introduce commits that make git bisect generally slower. Which might be awful if you also have some C code to recompile at every step of bisecting.

timothycrosley · 3 years ago
> isort's completely random… For example the latest version I tried decided to alphabetically sort all the imports, regardless if they are part of standard library or 3rd party. This is a big change of behaviour from what it was doing before.

This is not isort! isort has never done that. And it has a formatting guarantee across the major versions that it actively tests against projects online that use it on every single commit to the repository: https://pycqa.github.io/isort/docs/major_releases/release_po...

timothycrosley commented on Finland joins Sweden and Denmark in limiting Moderna Covid-19 vaccine   reuters.com/world/europe/... · Posted by u/DantesKite
justsee · 4 years ago
It's not as settled as you seem to think.

Leading vaccine developer Nikolai Petrovsky (who's working on a traditional, protein-based vaccine) recently mentioned in an interview that if he had a pregnant wife he'd advise her to avoid both the virus and the vaccine (something only the privileged could attempt, so not a one-size-fits-all recommendation) [1]

(In a more technical interview aimed at a scientific audience, he outlines a number of issues he has with the current options. [2])

One of Petrovsky's key issues is that on pregnancy and children, the sensitivity is so high and risks so great that there is usually a much, much higher bar before vaccines are authorised for use: that's been the history of traditional, protein-based vaccines where it can take decades before they're authorised for use in pregnant women, babies, children.

Pfizer only began their pregnancy and safety trials in February this year - so only a little over 7 months ago. It is designed to observe pregnancy through to newborns reaching 6 months of age, and will complete in a year.

So we currently have no safety data in pregnancies from pre-conception via all-important and sensitive first trimester, through to full term + 6 months.

Keep in mind the WHO changed position on safety and aligned with the CDC on recommending the vaccine 3 weeks before Pfizer even started its safety trials.

None of this is to say that getting Covid isn't currently provably worse than getting a current vaccine.

It's just to say the safety data is incomplete, there are still unknowns which could change the calculation significantly considering the nature of the technology used, and we just won't fully understand the issues for some time to come.

(Also keep in mind that with mandates, the proposal is for all to receive the current options, but the alternative is not for all pregnant women to become infected. The risk calculation generally assumes wrongly here.)

[1] https://www.doctorlewis.com.au/podcast-1/2021/7/19/episode-2...

[2] https://www.youtube.com/watch?v=yL_2Rq1zoRg&t=3063s

timothycrosley · 4 years ago
I personally think avoiding getting infected ever, just is so impractical as to not lay out as an option. As evidence more and more is showing both infected and vaccinated people are likely to spread the infection (even if they don't get symptoms) as soon as 3 months after the acquired "immunity". Combined with how infectious delta is, this third choice of never getting infected just feels disingenuous.
timothycrosley commented on Finland joins Sweden and Denmark in limiting Moderna Covid-19 vaccine   reuters.com/world/europe/... · Posted by u/DantesKite
pyronik19 · 4 years ago
Do we even know the real number? VAERS is highly underreported and how many vaccine cases are just getting labeled as "covid cases"... I love the southpark skit about this "covid related"... worth a watch.
timothycrosley · 4 years ago
This is complete nonsense. If anything VAERS would be over-reported, the people who are most against vaccination, blast it so often I see it in my facebook feed more often than advertisements. Anyone can add to VAERS, and I'm sure with all the antivaxx advertisement of it, they DO. Not to mention that doctors are required to, and report even unrelated deaths that happen right after vaccination. Meanwhile the reporting standards for covid, are the same as flu, nothing's changed there just a bunch of people grasping at straws, toward what goal I can't imagine.
timothycrosley commented on Finland joins Sweden and Denmark in limiting Moderna Covid-19 vaccine   reuters.com/world/europe/... · Posted by u/DantesKite
iratewizard · 4 years ago
Here's my vaccine anecdata. My wife and I are at the age when everyone we know is starting to have kids. My wife and I got pregnant on the first try, and 3 of her other friends had similar easy success. All 4 unvaccinated. On the vaccinated side of her friends there are two miscarriages, one stillbirth, one who has been trying since June, one trying much longer than that, and one that we think has been trying for a while but hasn't announced it to the group.

If these were caveman times and those people were drinking from a different stream, we would tell them not to drink from it. 3/3 success stories vs. 3 traumatic failures and two or three infertility issues.

timothycrosley · 4 years ago
While we are sharing meaningless anecdotes, almost everyone I know (since I live in Seattle) has been vaccinated. No one has reported any issues, a couple have since successfully had a child. None have even gotten a breakthrough infection of covid. Among friends I know from back east, who haven't gotten vaccinated, one had just turned 30, only health issue was obesity. He died. One was 35, best shape of any of my friends, was in ICU for 7 days with double pneumonia. And one miscarriage.

But hey, the good thing is, we also have data. And the data, shows no correlation between vaccination and these problems you're referring to, and yet a VERY HIGH correlation (and some good reasons to say causation) between getting covid and having these issues.

timothycrosley commented on Pyodide: Python for the Browser   lwn.net/SubscriberLink/85... · Posted by u/lukastyrychtr
timothycrosley · 5 years ago
I use this for the isort in browser demo: https://pycqa.github.io/isort/docs/quick_start/0.-try/ it was really awesome to be able to directly use a Python package without any wrangling or modification as is usually required with other Python on the browser solutions.
timothycrosley commented on Vaccine hopes rise as Oxford jab prompts immune response among old and young   reuters.com/article/us-he... · Posted by u/pseudolus
Devils-Avocado · 5 years ago
Why would you vaccinate children for something which is less deadly than the flu? This is the case even up to 60 years old.
timothycrosley · 5 years ago
Articles like this: https://www.news-medical.net/news/20201026/COVID-19-now-like... make me think that's seriously unlikely. I mean unless, you are talking about one of the historical flu pandemics. Yes, this is less deadly then the 1918 flu was in 1918. Then again, I think the 1918 flu would also be less deadly then it was in 1918 if it occurred for the first time today because of other medical advancements.

u/timothycrosley

KarmaCake day770March 21, 2013
About
Creator of hug, isort, portray and many other Python tools and libraries.

timothycrosley.com

View Original