File tree 4 files changed +21
-11
lines changed
4 files changed +21
-11
lines changed Original file line number Diff line number Diff line change 1
1
* text eol =lf
2
2
3
+ examples /crlf-line-endings.py eol =crlf
4
+ examples /python2-grammar-crlf.py eol =crlf
5
+ examples /python3-grammar-crlf.py eol =crlf
6
+
3
7
src /* .json linguist-generated
4
8
src /parser.c linguist-generated
5
9
src /tree_sitter /* linguist-generated
@@ -8,3 +12,4 @@ bindings/** linguist-generated
8
12
binding.gyp linguist-generated
9
13
setup.py linguist-generated
10
14
Makefile linguist-generated
15
+ Package.swift linguist-generated
Original file line number Diff line number Diff line change @@ -36,22 +36,21 @@ jobs:
36
36
node-version : ${{vars.NODE_VERSION}}
37
37
- name : Set up examples
38
38
run : |-
39
- git clone https://github.com/numpy/numpy examples/numpy --depth=1 --filter=blob:none
40
- git clone https://github.com/django/django examples/django --depth=1 --filter=blob:none
41
- git clone https://github.com/pallets/flask examples/flask --depth=1 --filter=blob:none
42
- git clone https://github.com/python/cpython examples/cpython --depth=1 --filter=blob:none
39
+ git clone https://github.com/numpy/numpy examples/numpy --single-branch -- depth=1 --filter=blob:none
40
+ git clone https://github.com/django/django examples/django --single-branch -- depth=1 --filter=blob:none
41
+ git clone https://github.com/pallets/flask examples/flask --single-branch -- depth=1 --filter=blob:none
42
+ git clone https://github.com/python/cpython examples/cpython --single-branch -- depth=1 --filter=blob:none
43
43
- name : Run tests
44
- uses : tree-sitter/parser-test-action@v1.1
44
+ uses : tree-sitter/parser-test-action@v1.2
45
45
with :
46
- lint : true
46
+ lint : ${{runner.os == 'Linux'}}
47
47
test-library : ${{runner.os == 'Linux'}}
48
- examples : |
48
+ corpus-files : |
49
49
examples/**/*.py
50
- !examples/cpython/Lib/test/badsyntax_3131.py
51
- !examples/cpython/Lib/test/badsyntax_future8.py
52
50
!examples/cpython/Lib/test/test_compile.py
53
- !examples/cpython/Lib/test/tokenizedata/badsyntax_3131.py
54
51
!examples/cpython/Tools/build/generate_re_casefix.py
52
+ invalid-files : |
53
+ examples/cpython/Lib/test/tokenizedata/badsyntax_3131.py
55
54
fuzz :
56
55
name : Fuzz parser
57
56
runs-on : ubuntu-latest
Original file line number Diff line number Diff line change 16
16
crates :
17
17
uses : tree-sitter/workflows/.github/workflows/package-crates.yml@main
18
18
secrets :
19
- CARGO_REGISTRY_TOKEN : ${{secrets.CARGO_TOKEN}}
19
+ CARGO_REGISTRY_TOKEN : ${{secrets.CARGO_REGISTRY_TOKEN}}
20
+ pypi :
21
+ uses : tree-sitter/workflows/.github/workflows/package-pypi.yml@main
22
+ secrets :
23
+ PYPI_API_TOKEN : ${{secrets.PYPI_API_TOKEN}}
Original file line number Diff line number Diff line change 5
5
[ ![ matrix] [ matrix ]] ( https://matrix.to/#/#tree-sitter-chat:matrix.org )
6
6
[ ![ crates] [ crates ]] ( https://crates.io/crates/tree-sitter-python )
7
7
[ ![ npm] [ npm ]] ( https://www.npmjs.com/package/tree-sitter-python )
8
+ [ ![ pypi] [ pypi ]] ( https://pypi.org/project/tree-sitter-python/ )
8
9
9
10
Python grammar for [ tree-sitter] [ ] .
10
11
@@ -20,3 +21,4 @@ Python grammar for [tree-sitter][].
20
21
[ matrix ] : https://img.shields.io/matrix/tree-sitter-chat%3Amatrix.org?logo=matrix&label=matrix
21
22
[ npm ] : https://img.shields.io/npm/v/tree-sitter-python?logo=npm
22
23
[ crates ] : https://img.shields.io/crates/v/tree-sitter-python?logo=rust
24
+ [ pypi ] : https://img.shields.io/pypi/v/tree-sitter-python?logo=pypi&logoColor=ffd242
You can’t perform that action at this time.
0 commit comments