-
Notifications
You must be signed in to change notification settings - Fork 30
Bump min supported Python to 3.10 #195
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
… on ffonons ImportError
Perhaps we should also add a
|
sure thing, please do! 👍 |
i'll make a new release after this PR to test it in production right away |
I was wondering why
|
yeah, that's an issue with the |
Thanks for the input. I would add a TODO tag there :) |
* ruff fixes * fix s101 use of assert * globally ignore SLF001, access private class member * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * add todo tag * put docstring and global ignore on top * fix py017, properly capture exception * Fix PT011, exception capture without match * add TODO tag for #195 (comment) * fix NPY201, np trapz * use warn over print to fix T201 * add comments for globally ignored ruff rules * guard type check only import when possible * remove ISC001 from ignore * add todo tag * reduce duration items shown to 20 * import Self from typing extension * remove global ignore of S311 as there're only 2 violation * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * replace random with numpy, which also fixes S311 * fix "PT006", # pytest-parametrize-names-wrong-type * guard type check only import * fix "COM812", # trailing comma missing * remove no type check mark * Revert "fix "COM812", # trailing comma missing" This reverts commit 5ab3390. * fix unit test of io * NEED confirm: change width from 457 to 458 * clean up branch condition * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * use native array size arg * revert accidental elem -> element rename * fix random array generation * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * fix random array generate in asset maker * revert test_io value to 457, reason unknown * skip eslint for now #197 * format pre-commit config * remove eslint skip mark in CI * fix indentation in pyproject.toml * drop quotes in test.yml string * fix typo in filename * fix shaded_ys type * remove overwriting pytest duration * pyproject whitespace --------- Co-authored-by: Janosh Riebesell <[email protected]>
* drop numpy<2 pin, pin scipy>=1.14, matplotlib>=3.9, pandas>=2.2 * bump min supported python to 3.10 * ruff auto-upgrade code to 3.10 14 of 20 mypy errors remaining * fix CI error Version 3.1 was not found in the local cache * explicitly mark typealias * use | in isinstance * test all make_asset scripts in CI * fix missing packages matminer kaleido in test-scripts SI * relax numpy pin >=1.26 * add env var secrets.MP_API_KEY in test-scripts CI, skip phonon assets on ffonons ImportError * make_assets/phonons.py change exit code to SystemExit(0) * add min version pins for optional deps * add py.typed mark to ship type information --------- Co-authored-by: Haoyu (Daniel) <[email protected]>
* ruff fixes * fix s101 use of assert * globally ignore SLF001, access private class member * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * add todo tag * put docstring and global ignore on top * fix py017, properly capture exception * Fix PT011, exception capture without match * add TODO tag for #195 (comment) * fix NPY201, np trapz * use warn over print to fix T201 * add comments for globally ignored ruff rules * guard type check only import when possible * remove ISC001 from ignore * add todo tag * reduce duration items shown to 20 * import Self from typing extension * remove global ignore of S311 as there're only 2 violation * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * replace random with numpy, which also fixes S311 * fix "PT006", # pytest-parametrize-names-wrong-type * guard type check only import * fix "COM812", # trailing comma missing * remove no type check mark * Revert "fix "COM812", # trailing comma missing" This reverts commit 5ab3390. * fix unit test of io * NEED confirm: change width from 457 to 458 * clean up branch condition * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * use native array size arg * revert accidental elem -> element rename * fix random array generation * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * fix random array generate in asset maker * revert test_io value to 457, reason unknown * skip eslint for now #197 * format pre-commit config * remove eslint skip mark in CI * fix indentation in pyproject.toml * drop quotes in test.yml string * fix typo in filename * fix shaded_ys type * remove overwriting pytest duration * pyproject whitespace --------- Co-authored-by: Janosh Riebesell <[email protected]>
start testing all
make_assets
scripts in GitHub Actions in 5b216f1 and so closes #164