Commit Graph
251 Commits
Author SHA1 Message Date
Hanif Ariffin 253cc4e846 Fix usize not using the same hash as PyInt when used as key into a di… (#5756)
* Fix usize not using the same hash as PyInt when used as key into a dictionary

* Fix test that unexpectedly succeed!

* Update extra_tests/snippets/builtin_object.py
2025-05-01 14:55:19 +09:00
Noa 494918d9fe Remove cfg_attr features for redox 2025-04-22 12:00:57 +09:00
Jeong YunWon e434ff5f6e basic wasip2 support 2025-04-20 19:47:35 +09:00
Noa 10fd02e42e Use constant_time_eq instead of our bespoke implementation 2025-04-17 11:05:57 -05:00
Noa 99a384a3c7 Upgrade radium 2025-04-16 17:08:52 -05:00
Jeong, YunWon 4ae2936a45 fix more cspell warnings (#5689) 2025-04-11 12:08:07 +09:00
Ashwin Naren b81ae9b954 More cspell fixes (#5670) 2025-04-11 09:37:20 +09:00
Noa 98137eb79c Switch to const-initialized thread_local variables where appropriate 2025-04-05 19:59:43 +09:00
Ashwin Naren 5c854fc690 clear out warnings 2025-04-04 21:46:28 +09:00
Jeong YunWon d7113e11db Fix more cspell warnings 2025-04-04 21:45:03 +09:00
Jeong YunWon 7ac61f3840 fix cspell warnings 2025-04-04 16:15:54 +09:00
Ashwin NarenandJeong YunWon 8063148598 Fix clippy lints from rust 1.86 update (#5665)
* handle rust 1.86 update

* fix windows clippy lint

* disable cspell under jit/instruction

---------

Co-authored-by: Jeong YunWon <jeong@youknowone.org>
2025-04-04 14:04:13 +09:00
Noa 160363fa46 Fix float parsing (#5643)
* Fix float parsing

* Add rustpython_literal::complex

* Don't call .to_string() on a constant
2025-03-31 14:37:47 +09:00
Noa 24d995678f Remove some unncessary dependencies 2025-03-31 11:28:15 +09:00
Noa 030243a6f9 Split out wtf8 into its own crate 2025-03-28 11:26:29 +09:00
Noa b6aacbf401 Merge pull request #5629 from coolreader18/surrogate-literals
Parse surrogates in string literals properly
2025-03-27 10:15:41 -05:00
NoaandJeong, YunWon dd467f6c73 Update common/src/wtf8/mod.rs
Co-authored-by: Jeong, YunWon <69878+youknowone@users.noreply.github.com>
2025-03-27 10:15:18 -05:00
Noa c9161c02b6 Merge pull request #5625 from youknowone/clippy
Apply nightly clippy suggestions
2025-03-26 23:40:42 -05:00
Noa 6e79a2aa8a Merge pull request #5626 from youknowone/remove-unused-deps
Remove unused dependency
2025-03-26 23:37:52 -05:00
Jeong, YunWon c96fd3d900 Merge pull request #4700 from youknowone/cspell
Activate cspell lint
2025-03-27 13:25:08 +09:00
Noa 0a07cd931f Fix more surrogate crashes 2025-03-26 23:12:21 -05:00
Noa c6cab4c43a Parse surrogates in string literals properly 2025-03-26 22:44:42 -05:00
NoaandJeong, YunWon e3d96aa3ca Remove commented-out code
Co-authored-by: Jeong, YunWon <69878+youknowone@users.noreply.github.com>
2025-03-26 12:42:03 -05:00
Jeong YunWon 372e683063 disable cspell from files with a bunch of OS jargons 2025-03-27 01:47:17 +09:00
Jeong YunWon 97fa11d526 Remove unused dependency 2025-03-26 20:18:29 +09:00
Noa f323d14ed3 Refactor codecs 2025-03-26 02:24:01 -05:00
Jeong YunWon bc38e9dedd Apply nightly clippy suggestions 2025-03-26 14:52:23 +09:00
Noa f3b8d5515a Address comments 2025-03-25 21:06:56 -05:00
Noa bd55baefa6 Optimize Wtf8Codepoints::count 2025-03-25 19:05:12 -05:00
Noa a86126419c Fix remaining tests 2025-03-25 19:05:12 -05:00
Noa cc6f3d3051 Make TextIOWrapper wtf8-compatible 2025-03-25 19:05:12 -05:00
Noa 3945d3b2fe Make format wtf8-compatible 2025-03-25 19:05:12 -05:00
Noa ba1b5811ee Update encoding to use wtf8 2025-03-25 19:05:11 -05:00
Noa 7f4582bb23 Make cformat wtf8-compatible 2025-03-25 19:05:11 -05:00
Noa cace112b1a Allow surrogates in str 2025-03-25 19:05:11 -05:00
Noa e3a1031081 Refactor cformat in prep for wtf8 2025-03-26 08:36:16 +09:00
Noa c585678ec9 Merge format and literal back into this repo (and update malachite) (#5618)
* Merge format and literal back into this repo

* Update format and literal to work

* Update malachite

* Remove RustPython/Parser from Cargo.toml
2025-03-23 09:27:13 +09:00
Ashwin Naren d2bf31724f fix clippy 2025-03-05 13:49:37 -06:00
Ashwin Naren b4929d258d formatting 2025-03-05 13:49:37 -06:00
Ashwin Naren 33940726a8 upgrade to windows-sys 0.59.0 2025-03-05 13:49:37 -06:00
Noa 6daee1b00e Warn on elided_lifetimes_in_paths 2025-03-01 13:49:33 +09:00
Ashwin Naren b870b0e1b5 2024 edition formatting
Signed-off-by: Ashwin Naren <arihant2math@gmail.com>
2025-02-26 11:48:22 -08:00
Noa 864e8598f8 Enable rust2024-incompatible pat and keyword-ident lints 2025-02-25 00:32:02 -06:00
Noa 0a8b0406f5 Enable missing_unsafe_on_extern lint 2025-02-24 21:25:23 -06:00
Noa 1c3b198a17 Enable unsafe_op_in_unsafe_fn lint 2025-02-24 21:25:23 -06:00
Noa a9331bb34d Fix warnings for rust 1.85 2025-02-20 14:58:59 -06:00
Hanif AriffinandJeong YunWon 65dcf1ce1c Updating test_math.py to CPython 3.12.9 (#5507)
* Fixed implementation against CPython 3.12.9 Lib/test/test_math.py tests
---------

Signed-off-by: Hanif Ariffin <hanif.ariffin.4326@gmail.com>
Co-authored-by: Jeong YunWon <jeong@youknowone.org>
2025-02-20 11:21:12 +09:00
Noa fa2acd7cde Update rand to 0.9 2025-02-18 17:07:26 +09:00
Ashwin Naren 7e1568a1ff Revert "windows-rs upgrade to 0.59"
This reverts commit 547530724e.
2025-02-17 14:15:57 -06:00
Ashwin Naren 6788010f7d windows-rs upgrade to 0.59 2025-02-17 14:15:57 -06:00