Commit Graph

22 Commits

Author SHA1 Message Date
Loïc Estève 4cfc0ff4b6
Update codespell version in pre-commit (#4938) 2024-07-16 13:44:45 +02:00
Hood Chatham 4774749070
FIX patch a bug in Emscripten that broke matplotlib (#4163) 2023-09-22 19:36:20 +09: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
Gyeongjae Choi 53d85a9bc2
MAINT Use run_in_pyodide in xgboost, opencv, and matplotlib tests (#3184) 2022-10-28 17:35:27 +09:00
Gyeongjae Choi edf175f013
TST Run package tests in Safari (#3095) 2022-09-14 09:13:53 +09:00
Roman Yurchak 4bbe60f8d3
Use matplotlib backends from matplotlib-pyodide (#3061) 2022-09-09 13:39:26 +02:00
Hood Chatham 1eab80ea40
MAINT Add pytest.mark.xfail_browsers and use it to reduce boilerplate (#2616)
Use a decorator to indicate which browsers we want to xfail test. 
This works for `run_in_pyodide` as well as normal tests.
2022-05-25 13:34:40 -07:00
Gyeongjae Choi 5bd042f6f7
Refactor matplotlib tests (#2271)
* Fix dangling webdriver

* Embed humor sans font

* Refactor matplotlib testing codes

* Trigger CI

* Trigger CI

* Catch error when import from js fails

* Update changelog

* Apply suggestions from the review
2022-03-16 09:39:34 +09:00
Henry Schreiner 138c7a7a7c
chore: matplotlib 3.5.1, yt 4 (#2234)
Co-authored-by: Hood Chatham <roberthoodchatham@gmail.com>
2022-03-06 21:14:24 -08:00
Hood Chatham 913d706090
xfail draw_math_text (#2243) 2022-03-02 14:29:02 -08:00
Madhur Tandon 869b1bb0c3
benchmark html5 canvas renderer (#2151)
* benchmark html5 canvas renderer

* adhere to lint

* rectify condition

* increase timeout

* do suggested changes

* adhere to lint

* use correct backend for benchmarks

* reintroduce tests + fix futures callback

* adhere to lint

* increase timeout for tests

* use selenium_standalone for tests

* increase timeout for check_comparison

* add result() to Future

* add debugging print statement

* adhere to lint

* use draw() instead of draw_idle()

* add new reference image for math text

* return NaN for non-native

* replace math text image for chrome as well

* increase timeout

* selenium standalone for benchmarks

* only matplotlib benchmarks

* re-enable benchmarks for numpy

* adhere to lint

* increase timeout
2022-02-24 18:51:24 +09:00
Henry Schreiner 66856a7427
MAINT isort (#2200) 2022-02-21 23:27:03 +01:00
Henry Schreiner ed22c06e07
chore: pyupgrade 3.9+ (#2195) 2022-02-20 17:13:37 -05:00
Hood Chatham f0bd568a31
Set up pytest node tests (#1717) 2021-07-20 10:48:27 +02:00
Madhur Tandon 738651ea10
Revive html5 <canvas> based renderer for matplotlib (#1579) 2021-06-27 08:36:14 -07:00
Hood Chatham c05c1cac78
Eliminate pyproxy leaks (#1616) 2021-06-07 09:23:47 +02:00
Hood Chatham 8cdd45b0d8
Universally check for hiwire memory leaks in test suite (#1340) 2021-03-24 16:32:26 -07:00
Hood Chatham b3a965a1f6
Don't automatically copy python objects into javascript (#1167)
* Don't automatically copy python objects into javascript, add new PyProxy.shallowCopyToJavascript and deepCopyToJavascript apis

* Lint

* Adjust conftest to automatically deep_copy results of run / run_async

* Update conftest again

* Fix deep/shallowCopyToJavascript

* Fix shallowCopyToJavascript and deepCopyToJavascript to return js object not hiwire id

* Fix the remaining tests (hopefully)

* Lint

* Fix more tests

* Fix some numpy tests

* Lint

* Fix more tests

* Lint

* Temporarily dummy out setLineDash since it breaks test

* Fix test_console

* Update changelog
2021-02-02 19:45:56 +01:00
Jan Max Meyer 81810a4c4b
Revert "Don't automatically copy python objects into javascript (#1152)" (#1165)
This reverts commit 6a44233562.
2021-01-22 18:22:31 +01:00
Hood Chatham 6a44233562
Don't automatically copy python objects into javascript (#1152)
* Don't automatically copy python objects into javascript, add new PyProxy.shallowCopyToJavascript and deepCopyToJavascript apis

* Lint

* Adjust conftest to automatically deep_copy results of run / run_async

* Update conftest again

* Fix deep/shallowCopyToJavascript

* Fix shallowCopyToJavascript and deepCopyToJavascript to return js object not hiwire id

* Fix the remaining tests (hopefully)

* Lint

* Fix more tests

* Fix some numpy tests

* Lint

* Fix more tests

* Lint

* Temporarily dummy out setLineDash since it breaks test
2021-01-22 12:28:22 +01:00
casatir 5f8e226d6a
PKG Upgrade matplotlib to v3.3.3 (#886) 2020-12-20 10:37:05 +01:00
Roman Yurchak 2cf8639973 MAINT Move package tests under packages/ dir (#471)
* Move package tests under the packages/ folder

* Fix tests
2019-06-19 14:26:08 -04:00