Commit Graph

87 Commits

Author SHA1 Message Date
M Bussonnier 135d83e50a
Update pre-commit and fix new issues (#4975) 2024-08-01 10:52:39 +02:00
Gyeongjae Choi 139b40f48a
Pin Node.js version in conda env and fix mypy tests (#4955)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-07-21 18:15:39 +09:00
Loïc Estève 4cfc0ff4b6
Update codespell version in pre-commit (#4938) 2024-07-16 13:44:45 +02:00
Muspi Merol f95577ebca
Add generic typing for `create_proxy`, `create_once_callable` and `JsDoubleProxy` (#4833)
Resolves #4832
2024-06-03 22:28:39 -07:00
Agriya Khetarpal 15eb1ae6b1
Add `crc32c` (#4789)
This PR adds the crc32c package and closes #4787. crc32c is a required dependency
for the upcoming version 3 for Zarr.
2024-05-24 10:57:36 -04:00
Gyeongjae Choi afe7215c06
Bump pydantic version used in pyodide-build to v2 (#4676)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-05-10 21:44:19 +09:00
Christian Clauss ee13a60fbc
Placate mypy with type: ignore (#4677) 2024-04-08 18:02:42 +09:00
pre-commit-ci[bot] 6f7ae21aa8
[pre-commit.ci] pre-commit autoupdate (#3736) 2024-04-04 09:21:19 +02:00
Hood Chatham fb31fff09a
Upgrade to Python 3.12.1 (#4435) 2024-02-03 19:25:45 -08:00
Hood Chatham 07b7c5cd17
Downgrade prettier to 3.1.0 (#4454)
v4.0.0-alpha.8 has a few problems, 3.1.0 is the last stable version and seems to
work better.
2024-01-30 16:19:14 -08:00
Hood Chatham b8287e42d9
chore: Update pre-commit (#4440)
I also reordered prettier to come last since it's the slowest. I switched from
using black to ruff-format which says its defaults are nearly the same as black.
2024-01-28 13:20:08 -08:00
Roman Yurchak 94ebdcacef
Fix package name compatibility with wheel filename (#4005)
Co-authored-by: Gyeongjae Choi <def6488@gmail.com>
2023-11-28 23:17:27 +09:00
Hood Chatham 46ccc983e6
Add aiohttp (#4282)
This doesn't actually work without an additional patch but it's possible
to get it to work by monkey patching a method. 

See discussion about adding support for Pyodide to aiohttp:
https://github.com/aio-libs/aiohttp/issues/7253
https://github.com/aio-libs/aiohttp/pull/7803
2023-11-18 12:21:36 -08:00
Gyeongjae Choi 0f141f65bc
Update pypa/build version to 1.0 (#4180) 2023-09-27 20:41:53 +09:00
Gyeongjae Choi 68dbcbc78f
Remove deprecated options for 0.24.0 release (#4112) 2023-09-02 13:55:58 +09:00
Hood Chatham 50b5e1ccb6 FIX Cap pydantic in pre-commit too 2023-07-01 09:00:33 -07:00
Roman Yurchak 17be4f1347
Use pyodide-lock for pyodide-lock.json parsing in Python (#3949)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2023-06-29 16:45:06 +00:00
Hood Chatham 09f903e8ab
NFC Update pre-commit rules to cover pyodide-build (#3911) 2023-06-06 14:21:03 -07:00
Hood Chatham d823e91e4b
Update pytest-pyodide to 0.52 (#3859) 2023-06-02 09:01:39 -07:00
Hood Chatham e309dfdad4
Move mypy to the end of pre-commit (#3755)
Mypy is much slower than any of the other checks so it should go last.
2023-04-11 18:42:55 +02:00
Hood Chatham 3e05af6963
Using esbuild instead of rollup (take 2) (#3720)
Co-authored-by: webreflection <andrea.giammarchi@gmail.com>
2023-03-31 09:30:04 +02:00
Roman Yurchak bce105bd69 Revert "Using esbuild instead of rollup (#3679)"
This reverts commit be12f07ed9.
2023-03-29 22:08:03 +02:00
Andrea Giammarchi be12f07ed9
Using esbuild instead of rollup (#3679)
This PR removes *rollup* in favor of *esbuild*, ensuring `DEBUG` flag, when used, 
is available to the produced JS and the *umd* dance has been simplified, ditching 
the *amd* part from it as I think *amd* is kinda dead as module system.
2023-03-27 12:48:19 -07:00
Christian Clauss 57f36ac6f8
Ruff is now compatible with Python pattern matching (#3650) 2023-03-13 22:45:06 +01:00
Roman Yurchak 48258ff146
Replace isort, flake8, pycln and pyupgrade by ruff (#3522)
Co-authored-by: Henry Schreiner <HenrySchreinerIII@gmail.com>
2023-02-07 08:35:20 +09:00
Roman Yurchak 2ee73d397c
CI Fix isort in pre-commit (#3521) 2023-01-30 22:05:48 +01:00
pre-commit-ci[bot] 7ad5c15690
[pre-commit.ci] pre-commit autoupdate (#3400) 2023-01-24 08:00:05 -08:00
Hood Chatham 3b2952fc92
Python3.11 (#3252) 2023-01-23 19:45:59 -08:00
Gyeongjae Choi eb7b80bb3e
Replace print statements with rich in pyodide-build (#3442) 2023-01-16 13:46:38 +09:00
Joe Marshall 76581a7d28
Get deps from pypi during build (#3310) 2023-01-05 08:45:20 +09:00
Hood Chatham 1169cf59a3
Hide deprecated arguments from docs (#3396)
This adds a mechanism to hide deprecated or private arguments from the documentation and
applies it to errorCallbackDeprecated.
2023-01-03 13:26:37 +09:00
Gyeongjae Choi 2f1716b575
Relocate files inside tools directory (#3358)
This PR relocates files inside `tools` directory so that `tools` directory doesn't
have to be vendored when creating xbuildenv.

- cmake, pyo3 config ==> moved to `pyodide-build`.
- venv python script ==> moved to templates, then copied to dist during build.
2022-12-26 20:00:24 -08:00
pre-commit-ci[bot] 4a35a5f80d
[pre-commit.ci] pre-commit autoupdate (#3345)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Roman Yurchak <rth.yurchak@gmail.com>
2022-12-13 00:08:49 +01:00
pre-commit-ci[bot] 4546f1b3d2
[pre-commit.ci] pre-commit autoupdate (#3325)
updates:
- [github.com/asottile/pyupgrade: v3.2.2 → v3.3.0](https://github.com/asottile/pyupgrade/compare/v3.2.2...v3.3.0)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2022-12-06 13:39:19 +01:00
pre-commit-ci[bot] 52e8609c54
[pre-commit.ci] pre-commit autoupdate (#3254) 2022-12-02 15:12:33 -08:00
Hood Chatham 420660eb50
Add support to PyProxy for using async python generators from js (#3290)
This adds support for using async Python generators via PyProxy.
2022-11-25 20:00:38 -08:00
Joe Marshall 4a1913d3ad
build packages from pypi direct (#3196)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Hood Chatham <roberthoodchatham@gmail.com>
Co-authored-by: Gyeongjae Choi <def6488@gmail.com>
Co-authored-by: Roman Yurchak <rth.yurchak@gmail.com>
2022-11-17 10:05:14 +09:00
pre-commit-ci[bot] dd0a22b261
[pre-commit.ci] pre-commit autoupdate (#3214)
updates:
- [github.com/asottile/pyupgrade: v3.1.0 → v3.2.0](https://github.com/asottile/pyupgrade/compare/v3.1.0...v3.2.0)
- [github.com/pre-commit/mirrors-prettier: v3.0.0-alpha.3 → v3.0.0-alpha.4](https://github.com/pre-commit/mirrors-prettier/compare/v3.0.0-alpha.3...v3.0.0-alpha.4)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2022-11-01 08:25:17 +09:00
pre-commit-ci[bot] 8093089e84
[pre-commit.ci] pre-commit autoupdate (#3204)
* [pre-commit.ci] pre-commit autoupdate

updates:
- [github.com/pre-commit/mirrors-prettier: v3.0.0-alpha.2 → v3.0.0-alpha.3](https://github.com/pre-commit/mirrors-prettier/compare/v3.0.0-alpha.2...v3.0.0-alpha.3)

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2022-10-25 08:40:40 +09:00
pre-commit-ci[bot] 00d0f347c8
[pre-commit.ci] pre-commit autoupdate (#3190)
updates:
- [github.com/asottile/pyupgrade: v3.0.0 → v3.1.0](https://github.com/asottile/pyupgrade/compare/v3.0.0...v3.1.0)
- [github.com/pre-commit/mirrors-prettier: v3.0.0-alpha.1 → v3.0.0-alpha.2](https://github.com/pre-commit/mirrors-prettier/compare/v3.0.0-alpha.1...v3.0.0-alpha.2)
- [github.com/codespell-project/codespell: v2.2.1 → v2.2.2](https://github.com/codespell-project/codespell/compare/v2.2.1...v2.2.2)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2022-10-19 09:08:02 +09:00
pre-commit-ci[bot] 65b659fe65
[pre-commit.ci] pre-commit autoupdate (#3174)
updates:
- [github.com/asottile/pyupgrade: v2.38.2 → v3.0.0](https://github.com/asottile/pyupgrade/compare/v2.38.2...v3.0.0)
- [github.com/psf/black: 22.8.0 → 22.10.0](https://github.com/psf/black/compare/22.8.0...22.10.0)
- [github.com/pre-commit/mirrors-mypy: v0.981 → v0.982](https://github.com/pre-commit/mirrors-mypy/compare/v0.981...v0.982)
- [github.com/pre-commit/mirrors-prettier: v3.0.0-alpha.0 → v3.0.0-alpha.1](https://github.com/pre-commit/mirrors-prettier/compare/v3.0.0-alpha.0...v3.0.0-alpha.1)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2022-10-11 09:11:15 +09:00
Gyeongjae Choi d8910dd03f
Bump mypy version to 0.981 in pre-commit config (#3159) 2022-09-29 13:30:48 +09:00
pre-commit-ci[bot] 8260b9f41f
[pre-commit.ci] pre-commit autoupdate (#3152)
updates:
- [github.com/asottile/pyupgrade: v2.38.0 → v2.38.2](https://github.com/asottile/pyupgrade/compare/v2.38.0...v2.38.2)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2022-09-27 10:09:50 +09:00
pre-commit-ci[bot] d9d6144a8b
[pre-commit.ci] pre-commit autoupdate (#3133) 2022-09-19 16:34:24 -07:00
pre-commit-ci[bot] efcca8be91
[pre-commit.ci] pre-commit autoupdate (#2928) 2022-09-13 15:12:40 -07:00
Hood Chatham b6d3281d67
Add command to create Pyodide virtual environment (#2976)
Inside the generated virtual environment, `python` will use node to run Pyodide.
Pip can be used to install packages into the environment.
2022-09-12 11:18:40 -07:00
Roman Yurchak 4dd8a3e0cb
Switch to meta.yaml parsing with pydantic (#3079) 2022-09-11 09:20:56 +02:00
Hood Chatham 3e2d7f29a5
Add command line runner main entry script (#3044)
This PR contains the changes from #3039 and #3040 which should be merged first.
The purpose is to add the main command line script from #2976.
2022-09-05 09:15:13 -07:00
pre-commit-ci[bot] fa19a6a4dc
[pre-commit.ci] pre-commit autoupdate (#2908)
updates:
- [github.com/asottile/pyupgrade: v2.37.1 → v2.37.2](https://github.com/asottile/pyupgrade/compare/v2.37.1...v2.37.2)
- [github.com/pre-commit/mirrors-mypy: v0.961 → v0.971](https://github.com/pre-commit/mirrors-mypy/compare/v0.961...v0.971)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2022-07-28 16:20:07 +09:00
Gyeongjae Choi 9d874d588b
MAINT Update pre-commit config (#2890) 2022-07-19 16:43:12 +01:00