Nok Lam Chan
06/02/2023, 12:43 PMJuan Luis
06/02/2023, 12:46 PMNok Lam Chan
06/02/2023, 1:05 PMpipx
basically install things like black
in a global environment (not core dependency), so you installed it once, then have your project dependencies in isolated environment.Juan Luis
06/02/2023, 1:06 PMpipx
! I use it for linters, docker-compose
, stuff like thatNok Lam Chan
06/02/2023, 1:08 PMpre-commit
that comes with its own virtualenv. May end up running different version of linter in CI and your local?Juan Luis
06/02/2023, 1:08 PMNok Lam Chan
06/02/2023, 1:08 PMJuan Luis
06/02/2023, 1:08 PMNok Lam Chan
06/02/2023, 1:10 PMJuan Luis
06/02/2023, 1:14 PMOn the other hand, I really want to replace pylint,isort,flake8 with ruff if it covers everything1000 I'm keeping an eye on their issue tracker to see when they release a 0.1.0 version
Matthias Roels
06/02/2023, 1:24 PMโfix
option is so nice! I run it in VSCode on save and it just frees up so much of my time to focus on logic instead of linting.Nok Lam Chan
06/02/2023, 1:25 PM-fix
option does? pylint is the slowest linter among the rest, it makes my commit takes more than 2 minutes with pre-commitflake8
doesn't support pyproject.toml
, another motivation to remove it!Juan Luis
06/02/2023, 1:29 PM-fix
is essentially the autoformatting part right? isort + black + ...Nok Lam Chan
06/02/2023, 1:35 PMMatthias Roels
06/02/2023, 1:57 PMNok Lam Chan
06/02/2023, 3:31 PMruff
that sort imports? @Matthias Roels What's the configuration?