Skip to content

Maintenance: several updates - #64

Merged
anki-code merged 12 commits into
xonsh:mainfrom
nahoj:rm_types_all
Apr 26, 2026
Merged

Maintenance: several updates#64
anki-code merged 12 commits into
xonsh:mainfrom
nahoj:rm_types_all

Conversation

@nahoj

@nahoj nahoj commented Apr 26, 2026

Copy link
Copy Markdown
Contributor

The change I'm least sure about is bumping the minimum Python version. I'm not sure what the policy is. But 3.8/9 don't pass CI after pre-commit autoupdate pins mypy to 1.20.

Several CI actions warned that they

run on Node.js 20, which GitHub deprecated and will force-upgrade in June 2026. Bump to current major versions, both of which run on Node.js 24.

actions/cache@v3 still does but is pulled by pre-commit/action@v3.0.0 which itself is deprecated. I don't know how to resolve this.

Claude justification for removing types-all.
▎ types-all is a meta-package that depends on types-pkg-resources, which has been removed from PyPI
▎ (its stubs were merged into types-setuptools). Installing the mypy hook fails with No matching
▎ distribution found for types-pkg-resources.

▎ Since the hook already passes --ignore-missing-imports, no replacement is needed. Projects that
▎ need specific stubs can add them as additional_dependencies themselves (e.g. types-requests).

@nahoj
nahoj marked this pull request as draft April 26, 2026 17:25
@nahoj nahoj changed the title fix(pre-commit): remove broken types-all from mypy hook Maintenance: several updates Apr 26, 2026
@nahoj
nahoj marked this pull request as ready for review April 26, 2026 19:45
@nahoj

nahoj commented Apr 26, 2026

Copy link
Copy Markdown
Contributor Author

I also wonder if it makes sense that the minimum xonsh version be 0.12.5 given how much change there must have been since then.

@anki-code
anki-code self-requested a review April 26, 2026 20:01
@anki-code
anki-code merged commit 9942a44 into xonsh:main Apr 26, 2026
5 checks passed
@anki-code

Copy link
Copy Markdown
Member

Thanks @nahoj !

@nahoj

nahoj commented Apr 26, 2026

Copy link
Copy Markdown
Contributor Author

@anki-code You're welcome, what do you think of the xonsh version requirement?

@anki-code

anki-code commented Apr 26, 2026

Copy link
Copy Markdown
Member

0.12.5 is totally outdated let's use 0.23.0 to push everything forward

@nahoj
nahoj deleted the rm_types_all branch April 26, 2026 20:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants