You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Nowadays there's a trend of using automatic code formatters, like Black, which apply a uniform code style automatically.
It's important to note that the point of these tools is to save time for developers by completely giving up formatting solutions. This has pros and cons:
Pros: You don't have to make decisions about code formatting ever again.
Cons: You don't get to decide the code formatting ever again 🙃
There are intermediate solutions that are not so opinionated, like yapf, that allow some configuration. But still, it's unlikely that you can configure the automated tool to do exactly what you'd want in all cases.
I personally find tools like Black quite liberating, by freeing me from tweaking the style of my code even if sometimes I don't quite like the result. However, I'd also understand if the skforecast maintainers decide to not adopt one.
To give you an idea of what this would mean, here's the result of applying black . to skforecast:
One of the most idiosyncratic features, at first sight, of the
skforecast
codebase is the liberal use of whitespace, see for example:skforecast/skforecast/model_selection/tests/test_backtesting_forecaster.py
Lines 51 to 66 in 47a0fc0
Nowadays there's a trend of using automatic code formatters, like Black, which apply a uniform code style automatically.
It's important to note that the point of these tools is to save time for developers by completely giving up formatting solutions. This has pros and cons:
There are intermediate solutions that are not so opinionated, like yapf, that allow some configuration. But still, it's unlikely that you can configure the automated tool to do exactly what you'd want in all cases.
I personally find tools like Black quite liberating, by freeing me from tweaking the style of my code even if sometimes I don't quite like the result. However, I'd also understand if the skforecast maintainers decide to not adopt one.
To give you an idea of what this would mean, here's the result of applying
black .
toskforecast
:The text was updated successfully, but these errors were encountered: