Skip to content

MAINT: Remove tomli, tomlsort, and ruff from test group#13809

Open
larsoner wants to merge 3 commits intomne-tools:mainfrom
larsoner:pyproject
Open

MAINT: Remove tomli, tomlsort, and ruff from test group#13809
larsoner wants to merge 3 commits intomne-tools:mainfrom
larsoner:pyproject

Conversation

@larsoner
Copy link
Copy Markdown
Member

@larsoner larsoner commented Apr 3, 2026

tomli, toml-sort, and ruff are installed by pre-commit install --install-hooks and are invoked using pre-commit calls nowadays. We shouldn't have them in test deps, as they're not needed as --group installs for standard testing / dev routines. If ruff still seems useful for devs, it could maybe be moved to dev not test (it's not needed for any of the tests we run on CIs or locally), but even this seems unnecessary in practice nowadays.

Closes #13796

@larsoner larsoner requested a review from drammock as a code owner April 3, 2026 05:10
@larsoner
Copy link
Copy Markdown
Member Author

larsoner commented Apr 3, 2026

codespell, on the other hand, still has a Makefile target that is not routed through pre-commit. So I think that one can stay in test for now. This is especially true since it runs in interactive mode there, so make codespell could still be useful to some folks.

@larsoner larsoner added this to the 1.12 milestone Apr 3, 2026
@drammock
Copy link
Copy Markdown
Member

drammock commented Apr 3, 2026

tomli, toml-sort, and ruff are installed by pre-commit install --install-hooks and are invoked using pre-commit calls nowadays

Won't they still be needed in the main env for IDE integrations to work? If only pre-commit installs them, they'll be in a separate env

@larsoner
Copy link
Copy Markdown
Member Author

larsoner commented Apr 3, 2026

Oh I hadn't thought about IDEs... So maybe keep ruff then? Doesn't seem like the TOML ones would be needed/used by IDEs?

@drammock
Copy link
Copy Markdown
Member

drammock commented Apr 3, 2026

Yeah I'd say keep ruff. Personally I have toml-focused IDE integrations too, but I doubt most folks do

@larsoner
Copy link
Copy Markdown
Member Author

larsoner commented Apr 3, 2026

Okay fixed!

Ready for merge unless I should also make the rpy2->doc-full change suggested in #13796 (comment)

@drammock
Copy link
Copy Markdown
Member

drammock commented Apr 3, 2026

Okay fixed!

Ready for merge unless I should also make the rpy2->doc-full change suggested in #13796 (comment)

might as well?

@larsoner larsoner requested a review from agramfort as a code owner April 3, 2026 15:25
@larsoner
Copy link
Copy Markdown
Member Author

larsoner commented Apr 3, 2026

Okay pushed, feel free to mark for merge-when-green if you're happy @drammock !

"rpy2",
"scikit-learn >= 1.4", # released 2024-01-18, will become 1.5 on 2026-05-21
"seaborn >= 0.5, != 0.11.2",
"selenium >= 4.27.1",
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe this one should move, too -- this is really only needed for making the contrib viz which only CircleCI does on a regular basis. But we can add stuff like this later if it becomes problematic (haven't heard many complaints about selenium installs so far)

@larsoner
Copy link
Copy Markdown
Member Author

larsoner commented Apr 3, 2026

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

rpy2 in API mode cannot be built without R.

2 participants