koaning / embetter

just a bunch of useful embeddings
https://koaning.github.io/embetter/
MIT License
469 stars 15 forks source link

comma added in embetter/text/__init_.py fixes #101 #103

Closed anopsy closed 7 months ago

anopsy commented 7 months ago

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.

koaning commented 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!

anopsy commented 7 months ago

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?

koaning commented 7 months ago

The checks look green on your PR, no?

CleanShot 2024-04-26 at 22 27 10@2x

anopsy commented 7 months ago

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😊

anopsy commented 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.

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:

koaning commented 7 months ago

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.

anopsy commented 7 months ago

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

anopsy commented 7 months ago

what do we want? flake8, black or ruff?

koaning commented 7 months ago

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: @.***>