Closed anopsy closed 7 months ago
Francesco added ruff on sklego. Given that I have a busy busy busy life I prefer not to make changes to my repos unless I really need to. Flake8 works fine, ruff is just a bit faster.
Thanks for the PR!
Oh I see. Btw, do I see correctly that the unit tests failed on this PR? =========================== short test summary info ============================ FAILED tests/test_text.py::test_basic_bpemb[both] - UnicodeDecodeError: 'utf-8' codec can't decode byte 0xbf in position 40762: invalid start byte
I run the tests in pytests and all passed, before committing. Also checked the files locally with Black. I wonder what happened here?
The checks look green on your PR, no?
I could have screenshoted it, I saw red on unittest, but now it's green. Now I wonder even more. 😅 Anyway, I'm happy it's all good now😊
Francesco added ruff on sklego. Given that I have a busy busy busy life I prefer not to make changes to my repos unless I really need to. Flake8 works fine, ruff is just a bit faster.
Just to clarify, I meant the lack of pre-commits in general. I can't see neither ruff nor Flake8 as the pre-commit hooks. When I was committing:
Ah like that! I think the main reason why these are missing is because the embetter repo really only has one author (me) and I've sofar managed fine by running most of these things locally. Locally I usually do that by running make check
which runs all of my checks.
You'd certainly be welcome to add these to the repo if you'd enjoy the exercise by the way, it's just that this is one of the plugins that I made in a hurry and never really took the effort to make the project more appropriate for a "multi-author" situation. Scikit-lego was multi-author from the start so we took more time into the developer experience there.
yeah I noticed that you're the only contributor and thought that probably embetter was a just a little convenient tool. Anyway I would love to add the hooks. Thank you clarifying
what do we want? flake8, black or ruff?
ruff should be fine!
- Vincent
On Wed 1. May 2024 at 16:58, Magdalena Anopsy @.***> wrote:
what do we want? flake8, black or ruff?
— Reply to this email directly, view it on GitHub https://github.com/koaning/embetter/pull/103#issuecomment-2088589371, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAHY7D3LRSACVAWFQCYO2YLZAD7JPAVCNFSM6AAAAABG3ED4FKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAOBYGU4DSMZXGE . You are receiving this because you modified the open/close state.Message ID: @.***>
fixed the comma btw I was curious about the ruff pre-commit hooks. You have that in sklego, I wondered why not here. I mean if there is a reason or just not yet. If not yet, then that might be something I would like to try to do.