-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update Python chapter #302
Conversation
06fbd9e
to
edec21f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good already! Just some suggestions for further improvement
hi all! i'm not sure this is the right place, please let me know if not ;) |
@jiskattema let's discuss in #317 :) |
@bouweandela I merged, since you approved before, but if you'd like to still check the changes, see the last commit :) |
|
||
Most of the above tools can be integrated in text editors and IDEs for convenience. | ||
|
||
Autoformatting tools like [`yapf`](https://github.com/google/yapf) and [`black`](https://black.readthedocs.io/en/stable/index.html) can automatically format code for optimal readability. `yapf` is configurable to suit your (team's) preferences, whereas `black` enforces the style chosen by the `black` authors. The [`isort`](http://timothycrosley.github.io/isort/) package automatically formats and groups all imports in a standard, readable way. | ||
|
||
Ruff can do autoformatting as well and can function as a drop-in replacement of `black` and `isort`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As far as I'm aware, Ruff can only correct small bits of lint, not full autofomatting..
Thanks! Looks great now, except for the addition on auto formatting. I created a new issue for it.. |
Below, describe what this Pull Request adds:
Was trying to fix some links, but came across prospector references, so I removed those first (one of the broken links was to our prospector config file in the python-template, which no longer exists there) and added mention of Ruff.
Will fix other links later.Fixed other links as well and updated some details on Conda (miniforge now includes mamba, mambaforge is discouraged).