ruff
Preserve RustPython History
#6119
Merged

Preserve RustPython History #6119

MichaReiser merged 393 commits into main from preserve-history
MichaReiser
DimitrisJim Merge pull request #4389 from harupy/4384-follow-up
95fb938b
DimitrisJim Move tests for with into parser.
92b2574d
branai changed the shell logic for handling indents
6cb57b20
branai forgot to add formatted errors.rs
530a20cc
youknowone Move (c)format basic implementations to rustpython-common
f8787a93
harupy Remove unreachable code in compiler/parser/src/string_parser.rs
68586f8e
harupy Simplify code using match
fac6a857
harupy Fix match
92bf9660
harupy Merge match arms in parse_formatted_value
40e2150f
DimitrisJim Merge pull request #4402 from harupy/remove-unreachable-if
d691527e
DimitrisJim Merge pull request #4404 from harupy/merge-match-arms
4222b13e
harupy Use drain
39f410c9
youknowone Merge pull request #4399 from branai/shell-continuing-fix
3d034396
youknowone Merge pull request #4405 from harupy/use-drain
71ba4226
harupy Improve error conversion in string_parsers.rs
90306791
harupy Fix clippy error
3b0fd61b
youknowone Merge pull request #4409 from harupy/improve-error-conversion-in-stri…
2858c315
harupy Remove repetitive to_string in parse_escaped_char
515dceb0
harupy Improve CharWindow
300710f7
harupy Remove incorrect EmptyExpression in parse_formatted_value
84dff79d
harupy Address comment
33a62789
harupy Add with_col_offset and with_row_offset to Location
6d140426
harupy Use Self
0365752b
youknowone Merge pull request #4413 from harupy/more-generic-window-impl
0f311cd5
youknowone Merge pull request #4417 from harupy/add-with-offset-methods
958c7e33
harupy Simplify string check
fd8468c5
harupy Use try_from
9efa8720
harupy Address comments
7f552e45
harupy Implement Default for Location
2dfd053b
harupy Include comment text in token
a4a53665
youknowone Fix nightly clippy warnings
509cf7ed
youknowone Merge pull request #4429 from youknowone/fix-format
e8fef398
youknowone first cspell dict
7885344b
coolreader18 Bump all crate versions to 0.2.0
884a7bdb
not-my-profile Fix docs.rs build for rustpython-parser
4f1e7c62
bluetech Add NonLogicalNewline token
674eeec2
coolreader18 Switch from 64-bit instruction enum to out-of-line arg values
872b9d47
bluetech Fixup parse_tokens after "Add NonLogicalNewline token"
e5fe037e
DimitrisJim Merge pull request #4443 from bluetech/non-logical-newline-token-fixup
ac4d3c07
harupy Fix dict spreading in dict literal
581f6e17
harupy Fix unparse
d3c45516
harupy Remove commented-out code
4edd2bf7
harupy Add Option to Dict.keys field
393869c4
harupy Improve test
d5fc7c4c
harupy Rename test
2d019930
harupy Remove useless String::from
b26365b2
andersk Fix end location for elif blocks
6dba8430
harupy Fix comment
f2ffe12f
youknowone Merge pull request #4449 from harupy/fix-dict-spread-in-dict
d9df1317
akx Bump phf to 0.11 series
f74e44d1
DimitrisJim Match on ascii start/continuation characters before calling functions.
aa0290bb
DimitrisJim Don't call is_emoji_presentation for each invocation of consume_normal
838990ae
DimitrisJim Add initial capacities, use u32s for indents/spaces.
38cf933b
DimitrisJim Eat for comma.
c9364718
DimitrisJim Hint that the unwrap should always succeed.
1468fe46
youknowone use workspace dependencies
a73bee7a
DimitrisJim Move NewLineHandler inline, don't check each character twice.
bd158089
DimitrisJim Document lexer.
659f4dd8
charliermarsh Use entire range for generators-as-arguments
56c73cc6
youknowone Add test_generator_expression_argument
e7f14ab9
DimitrisJim Refactor: Join string and string_parser.
4713b2b3
DimitrisJim Add tests, some comments, to function.rs.
a0786ea8
DimitrisJim Document parser crate.
07918f0a
youknowone Merge pull request #4492 from DimitrisJim/doc_parser_uno
cc6d8a1c
youknowone Merge pull request #4490 from DimitrisJim/function_parser
09b82e41
minhrongcon2000 Make common::repr throw error instead of panic (#4520)
4bdc2d47
charliermarsh Add support for match statements to parser
2b43d45b
charliermarsh Use muiltipeek
ca5b474d
youknowone clean up soft-keyword transform
e093d2be
charliermarsh Update compiler/parser/src/soft_keywords.rs
f39ffef3
charliermarsh Allow starred expressions in subscripts
8aa3bc93
charliermarsh Update Python.asdl from CPython 3.11.1
8caa28f0
charliermarsh Implement except* syntax
c7ed645c
youknowone Merge pull request #4531 from charliermarsh/charlie/exception-groups
60180fd5
DimitrisJim Merge pull request #4519 from charliermarsh/charlie/match
c137bc9d
charliermarsh Expose SoftKeywordTransformer on public API
dc628cab
charliermarsh Always wrap in SoftKeywordTransformer
2a8aa6f3
youknowone Break down rustpython_parser::error module
1511b663
youknowone Fix ModeParseError message
66e30801
youknowone relocate feature-independent use
39fc23cf
youknowone make_tokenizer -> lex to integrate terms
8580e4eb
youknowone Flatten rustpython_parser interface
cb8c6fb7
youknowone remove #[macro_use]
97a08ee7
youknowone use super::* from tests submodules
e26369a3
charliermarsh Allow trailing commas in MappingPattern
b61f4d7b
charliermarsh Limit match range to end of last statement
7ebef61c
youknowone Merge pull request #4543 from youknowone/flatten-parser
a19f294b
youknowone Merge pull request #4552 from charliermarsh/charlie/loc
f43e5b72
charliermarsh Allow type variable tuple for *args
0d7b9481
charliermarsh Use proper locations for sub-expressions in constant matches
c37e0c7f
youknowone Use git version of unicode_names2 to avoid alias search failure
d7e2e736
DimitrisJim Use insta to verify values.
8f425e9c
coolreader18 Custom marshal enc/decoding impl
b80bbec8
coolreader18 Address review comments
969ea23d
charliermarsh Add optional serde dependency
713dd2b9
charliermarsh Treat match and case as soft keywords in lambda assignments (#4623)
55fc0e83
coolreader18 Rework frozen modules and directly deserialize to CodeObject<Literal>
9d6ae774
youknowone Merge pull request #4608 from coolreader18/bag-deser
0ea53825
charliermarsh Include Derive feature with optional Serde dependency
ef38eb6b
youknowone Update cspell for compiler
f9b54696
youknowone Update lalrpop
6d615541
youknowone module objects' type as PyModule
a9f4b59f
MichaReiser Use `Located::new` over struct initializer
3873414b
MichaReiser Add `Located::start`, `Located::end` and impl `Deref`
ae9d3c31
youknowone Refactor common::str::repr using common::escape
5b0e92d7
youknowone Refactor common::bytes::repr using common::escape
bd646039
youknowone rustpython-literal
80109b1f
youknowone Set up workspace - Forked from
e6eb49ff
youknowone Remove unused workspace dependencies
0adcdd99
youknowone Add CI
e28f333f
youknowone Merge pull request #5 from youknowone/ci
d66d9358
youknowone Update parser/build.rs to embed python.rs
e1f70100
youknowone Update lalrpop to 0.20.0
39b2dbe0
youknowone Merge pull request #7 from youknowone/lalrpop
6b60f85c
youknowone Add python lint
a73bac9e
youknowone Merge pull request #8 from youknowone/python-lint
96eb80f5
youknowone Remove CompileError
13d6e275
youknowone Merge pull request #10 from youknowone/remove-compile-error
48920a03
youknowone gitattribute
9f1a538e
youknowone Refactor ast to hold data as seperated type
6d735809
youknowone Merge pull request #11 from youknowone/refactor-asdl
7b8844bd
MichaReiser Replace row/column based Location with byte-offsets.
58c35ab4
youknowone Rename compiler Location to TextSize
f47dfca4
youknowone Separate byteoffset ast and located ast
a14e43e0
youknowone Adapt SourceLocation
09a6afdd
youknowone numerous refactoring
a3d9d8cb
youknowone Let `located` only for python located stuff
1d366d52
youknowone Vendor SourceLocation from ruff
4dc030ba
youknowone Merge pull request #13 from youknowone/locator
5cf85f0b
thejcannon Generate a visitor trait to ast_gen.rs
4de9580b
youknowone Fix visitor to fit in new structure
243ca16b
youknowone Remove redundant types
e000b1c3
youknowone asdl_rs.py to multiple file output
17c8abce
youknowone Merge pull request #12 from youknowone/visitor
41e9e728
youknowone Setup spell checker
75f6ce1a
youknowone spell check ast/asdl_rs.py
d8822d10
youknowone Merge pull request #15 from youknowone/spellchecker
d495cd91
youknowone Give identifier and int ast types
455bcc01
youknowone Fine-tune int types
6fa3d0f9
youknowone Merge pull request #16 from youknowone/ast-int
cbc4cb28
youknowone fix ImportDots
aa101e4f
youknowone parse_expression{=>_starts}_at
822cac5a
youknowone ast::Int::to_usize
d6b6df5d
youknowone *Escape::with_preferred_quote
99e108dd
youknowone ruff integration support
aabc96dd
youknowone Make parser location optional
cbe4e8c5
youknowone Merge pull request #17 from youknowone/ruff
5b2af304
youknowone A few more Identifier utilities
2af98056
youknowone Merge pull request #19 from RustPython/identifier
2baad9ea
youknowone Field accessor and utilities (#20)
947fb53d
MichaReiser Add `format` and `cformat` modules from `RustPython` (#24)
a983f438
MichaReiser Move `range` from `Attributed` to `Node`s (#22)
192379ce
youknowone Move range to node (#23)
71835467
youknowone Generic types to generic (#30)
b78001c9
MichaReiser Reduce copying elements when parsing (#35)
dd4cc252
youknowone Add full-lexer feature (#36)
27e3873d
charliermarsh Always emit non-logical newlines for 'empty' lines (#27)
10dda125
youknowone Add Node trait for node type information (#31)
02f13abf
youknowone Fix full-lexer feature (#38)
735c06d5
youknowone Add is_* methods to Tok (#39)
0c7d16b6
youknowone Add all node classes to ast module (#40)
53de75ef
youknowone rustpython_ast + pyo3 (#25)
611dcc2e
youknowone specialize ConversionFlag (#42)
9d47d3d2
youknowone Hash for ConversionFlag
3bdf8a94
youknowone Add utilities to enum (#44)
ff17f6e1
youknowone Add experimental pyo3-wrapper feature (#41)
e820928f
youknowone Fix build (#45)
fc301ab1
youknowone README (#47)
205ee800
youknowone More flexible map_user and fold for new constructor nodes (#53)
b48834fe
youknowone Upgrade bitflags to remove clippy wanrings (#54)
531e41ae
youknowone Fix range field order (#56)
6c5c311b
youknowone Add `Ast` as top level enum (#58)
3654cf0b
MichaReiser Use named parameters to reducue copying
851f2366
MichaReiser Avoid allocating `vec`s for each statement
726884b2
MichaReiser Update parser/src/python.lalrpop
4ff779c2
MichaReiser Update `python.rs`
fac0c253
MichaReiser Merge pull request #60 from astral-sh/reduce-copy
33a3c407
MichaReiser Include decorators in `Class` and `FunctionDef` range
25cc1da3
MichaReiser Add test
41a0ef87
youknowone impl From<T> for ast::Ast (#62)
d4084fb1
youknowone Fix Vec::to_pyo3_ast (#63)
e1f02fce
MichaReiser Merge pull request #2 from astral-sh/include-decorators-in-class-and-…
335780ae
youknowone to_pyo3_ast to return &'py
b81273e9
youknowone Separate rustpython_ast_pyo3
7d384d88
youknowone Merge pull request #65 from youknowone/refactor-pyo3
d23611db
MichaReiser Avoid removing elements from the beginning of a vec (#69)
5493c9f4
youknowone Parse Trait (#71)
4de0cb18
youknowone Cmpop::as_str (#72)
531aeb35
youknowone Add parser deps to rustpython_ast_pyo3 (#75)
ae3a477c
MichaReiser Align `MatchCase` end location
4a2c4aad
MichaReiser Add safety comment
342cd19f
MichaReiser Merge pull request #76 from astral-sh/match-case-end-location
fe25708d
youknowone Parse for expr and stmt variants + identifier, constant (#78)
3fbf4f68
youknowone New Arguments and Arg/ArgWithDefault AST representation (#59)
fdec727f
youknowone Linear Locator (#46)
5e9e8a75
qingshi163 Replace num-bigint with malachite-bigint (#18)
a2e3209c
youknowone Fix LinearLocator \r handling (#80)
b2f95e28
youknowone Add Pylyzer
40a60320
yt2b Fix bool format (#91)
edcfcb4a
youknowone rustpython_ast python package (#79)
52700204
youknowone Rename unconventional nodes (#74)
69d27d92
MichaReiser Merge branch 'RustPython:main' into main
5054cbe8
MichaReiser Include argument parentheses in range (#5)
8a415fa6
MichaReiser Add `Decorator` node (#7)
6f65c5cb
charliermarsh Update snapshot tests
9cb00518
charliermarsh Optimize `validate_arguments` (#10)
21aa0b8d
charliermarsh Make malachite-bigint an optional dependency for rustpython-format (#12)
8d74eee7
charliermarsh Remove `fold`, `unparse`, and `location` features (#9)
f0d200c8
charliermarsh Add `TextRange` to `Identifier` (#8)
ed3b4eb7
MichaReiser Fix ArgWithDefault TextRange (#13)
08ebbe40
MichaReiser Fix range of keyword identifier (#14)
f60e204b
MichaReiser Remove Range type parameter from AST nodes (#15)
8078663b
konstin impl<T> Ranged for &T where T: Ranged (#16)
c174bbf1
konstin impl Ranged for TextRange (#20)
0f2e295f
konstin Remove asdl (#21)
2d1f69cb
davidszotten tuple constants are for optimisations, not source (#28)
b996b21f
zanieb Regenerate code with latest ASDL
05ae26b9
zanieb Bump size assertion for `Stmt` from 136 to 160 bytes
c0a3a20c
zanieb Move `type_param` stubs into LALRPOP definition
c31b58eb
zanieb Parse type parameters in class definitions
ed7acfe4
zanieb Remove test for empty generic `class Foo[]: ...`
1f5e7078
zanieb Add test for tuple bounds
b0e119f0
zanieb Add bound to test case `test_parse_class_with_all_possible_generic_ty…
ce3ce073
zanieb Consolidate tests and add coverage for trailing comma
1d4b7a39
zanieb Parse type parameters in function definitions (#96)
f846f1ea
zanieb Add parsing of type alias statements i.e. the `type` keyword (#97)
a843a00f
zanieb Format
78c6ede1
zanieb Bump expected size of `Stmt` to 168 bytes
57e8712d
zanieb Fix decorator ranges
126652b6
dhruvmanila Lex Jupyter line magic with `Mode::Jupyter` (#23)
3b4c8fff
dhruvmanila Fix Jupyter Magic test snapshot (#29)
510be51c
konstin snapshot
1bbec2b9
konstin Revert "snapshot"
ff3e8ead
konstin Refactor if statement, introduce nodes for elif and else (#22)
db04fd41
zanieb Implement `Ranged` for `TypeParam` (#32)
fb365c64
konstin Fix empty lambda args range (#35)
4d03b9b5
cnpryer Fix BoolOp python.org link (#37)
4888d800
dhruvmanila Lex Jupyter Magic in assignment value position (#30)
e363fb86
dhruvmanila Add line magic stmt and expr AST nodes (#31)
5ef4ccd6
davidszotten fix the ranges of constants inside f-strings (#33)
13196fc5
MichaReiser perf: Cursor based lexer (#38)
593b46be
MichaReiser Prepare for moving the parser into the Ruff monorepo (#40)
ff7bab58
MichaReiser Remove parser ast re-export (#41)
fab9cc52
zanieb Fix `TypeAliasName` to store name instead of load (#42)
7ec979d0
MichaReiser Move files to common directory
6f4ee328
MichaReiser Fix clippy issues
802df97d
MichaReiser Delete more unused files
90573975
MichaReiser Delete RustPython files
c1bc0dc8
MichaReiser Merge branch 'main' of ../parser-move into preserve-history
7a63a8f4
MichaReiser
MichaReiser
MichaReiser Move RustPython Files
06ba1cf0
MichaReiser MichaReiser force pushed from 6152de3a to 06ba1cf0 2 years ago
github-actions
MichaReiser MichaReiser closed this 2 years ago
MichaReiser MichaReiser reopened this 2 years ago
MichaReiser MichaReiser enabled auto-merge 2 years ago
Boshen
MichaReiser
MichaReiser MichaReiser merged 9040554b into main 2 years ago
MichaReiser MichaReiser deleted the preserve-history branch 2 years ago
davidszotten
MichaReiser
MichaReiser
MichaReiser MichaReiser restored the head branch 2 years ago
MichaReiser MichaReiser deleted the preserve-history branch 2 years ago

Login to write a write a comment.

Login via GitHub

Reviewers
No reviews
Assignees
No one assigned
Labels
Milestone