From: alex Date: Fri, 28 Jun 2024 22:01:37 +0000 (+0200) Subject: Update on rye/ruff X-Git-Tag: 20241020-emacs~139 X-Git-Url: https://xn--ix-yja.es/gitweb/?a=commitdiff_plain;h=f33bdd96248885be1a523c7626109b3c8eaa076a;p=alex.git Update on rye/ruff --- diff --git a/programming/python/project_setup.md b/programming/python/project_setup.md index 8c0f14f..57c26c5 100644 --- a/programming/python/project_setup.md +++ b/programming/python/project_setup.md @@ -13,6 +13,12 @@ Pipx is useful for two purposes: # Use Poetry +> [!NOTE] +> I have been using [rye](https://rye.astral.sh/) recently. +> Not enough to recommend it unconditionally over Poetry, but I am liking it so far. +> Consider testing it. +> It uses [Python redistributable builds](https://github.com/indygreg/python-build-standalone) to manage Python versions, so you can choose to use more modern Python versions. + When using third-party dependencies in your Python code, it is highly interesting to avoid installing any project-specific dependency outside the project. To achieve that, traditionally virtualenvs are used; those are miniature Python installations where you can install any library you want. Virtualenvs need to be explicitly activated to be used, so it is easy to have a virtualenv for each Python project you are working on. @@ -50,7 +56,11 @@ Set up your version control so changes cannot be made to your main codeline with # Perform automated code formatting and static checking -TODO: consider using [Ruff](https://github.com/astral-sh/ruff) as an alternative to Black *and* flake8. +> [!NOTE] +> I have been using [ruff](https://github.com/astral-sh/ruff) recently. +> Not enough to recommend it unconditionally over flake8/black, but I am liking it so far. +> Consider testing it. +> It requires slightly less configuration and it comes with more lints. ## Use Black