essyntax 0.1.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- essyntax-0.1.0/.github/ISSUE_TEMPLATE/bug_report.yml +34 -0
- essyntax-0.1.0/.github/ISSUE_TEMPLATE/config.yml +5 -0
- essyntax-0.1.0/.github/ISSUE_TEMPLATE/feature_request.yml +22 -0
- essyntax-0.1.0/.github/PULL_REQUEST_TEMPLATE.md +7 -0
- essyntax-0.1.0/.github/dependabot.yml +30 -0
- essyntax-0.1.0/.github/workflows/ci.yml +122 -0
- essyntax-0.1.0/.github/workflows/docs.yml +38 -0
- essyntax-0.1.0/.github/workflows/publish.yml +441 -0
- essyntax-0.1.0/.gitignore +32 -0
- essyntax-0.1.0/.pre-commit-config.yaml +73 -0
- essyntax-0.1.0/.python-version +1 -0
- essyntax-0.1.0/CITATION.cff +21 -0
- essyntax-0.1.0/CODE_OF_CONDUCT.md +54 -0
- essyntax-0.1.0/CONTRIBUTING.md +60 -0
- essyntax-0.1.0/Cargo.lock +155 -0
- essyntax-0.1.0/Cargo.toml +19 -0
- essyntax-0.1.0/LICENSE-MODEL.txt +36 -0
- essyntax-0.1.0/LICENSE.txt +17 -0
- essyntax-0.1.0/Makefile +101 -0
- essyntax-0.1.0/PKG-INFO +184 -0
- essyntax-0.1.0/README.es.md +146 -0
- essyntax-0.1.0/README.md +146 -0
- essyntax-0.1.0/THIRD-PARTY-NOTICES.txt +205 -0
- essyntax-0.1.0/crates/essyntax/Cargo.toml +20 -0
- essyntax-0.1.0/crates/essyntax/LICENSE.txt +17 -0
- essyntax-0.1.0/crates/essyntax/README.md +66 -0
- essyntax-0.1.0/crates/essyntax/src/error.rs +35 -0
- essyntax-0.1.0/crates/essyntax/src/format.rs +314 -0
- essyntax-0.1.0/crates/essyntax/src/kernels.rs +352 -0
- essyntax-0.1.0/crates/essyntax/src/lib.rs +518 -0
- essyntax-0.1.0/crates/essyntax/src/model.rs +484 -0
- essyntax-0.1.0/crates/essyntax/src/tree.rs +554 -0
- essyntax-0.1.0/crates/essyntax/tests/model.rs +75 -0
- essyntax-0.1.0/crates/essyntax-py/Cargo.toml +18 -0
- essyntax-0.1.0/crates/essyntax-py/src/lib.rs +903 -0
- essyntax-0.1.0/data/check.conllu +5825 -0
- essyntax-0.1.0/data/es-syntax.bin +0 -0
- essyntax-0.1.0/docs/authors.es.md +11 -0
- essyntax-0.1.0/docs/authors.md +11 -0
- essyntax-0.1.0/docs/cli.es.md +103 -0
- essyntax-0.1.0/docs/cli.md +103 -0
- essyntax-0.1.0/docs/css/extra.css +33 -0
- essyntax-0.1.0/docs/img/arcs.es.svg +80 -0
- essyntax-0.1.0/docs/img/arcs.svg +80 -0
- essyntax-0.1.0/docs/img/essyntax.png +0 -0
- essyntax-0.1.0/docs/img/essyntax.svg +17 -0
- essyntax-0.1.0/docs/img/favicon.png +0 -0
- essyntax-0.1.0/docs/img/heads.es.svg +113 -0
- essyntax-0.1.0/docs/img/heads.svg +113 -0
- essyntax-0.1.0/docs/img/model.es.svg +69 -0
- essyntax-0.1.0/docs/img/model.svg +69 -0
- essyntax-0.1.0/docs/img/pipeline.es.svg +128 -0
- essyntax-0.1.0/docs/img/pipeline.svg +128 -0
- essyntax-0.1.0/docs/index.es.md +79 -0
- essyntax-0.1.0/docs/index.md +79 -0
- essyntax-0.1.0/docs/installation.es.md +42 -0
- essyntax-0.1.0/docs/installation.md +42 -0
- essyntax-0.1.0/docs/model.es.md +53 -0
- essyntax-0.1.0/docs/model.md +53 -0
- essyntax-0.1.0/docs/parser.es.md +334 -0
- essyntax-0.1.0/docs/parser.md +334 -0
- essyntax-0.1.0/docs/performance.es.md +100 -0
- essyntax-0.1.0/docs/performance.md +100 -0
- essyntax-0.1.0/mkdocs.yml +117 -0
- essyntax-0.1.0/pyproject.toml +162 -0
- essyntax-0.1.0/python/essyntax/__init__.py +14 -0
- essyntax-0.1.0/python/essyntax/__main__.py +802 -0
- essyntax-0.1.0/python/essyntax/_essyntax.pyi +103 -0
- essyntax-0.1.0/python/essyntax/py.typed +0 -0
- essyntax-0.1.0/scripts/compare.py +1192 -0
- essyntax-0.1.0/scripts/compare.py.lock +1773 -0
- essyntax-0.1.0/scripts/export_ud.py +113 -0
- essyntax-0.1.0/scripts/figures.py +798 -0
- essyntax-0.1.0/scripts/notices.py +98 -0
- essyntax-0.1.0/scripts/smoke.py +63 -0
- essyntax-0.1.0/scripts/train.py +954 -0
- essyntax-0.1.0/scripts/train.py.lock +457 -0
- essyntax-0.1.0/tests/test_cli.py +595 -0
- essyntax-0.1.0/tests/test_docs.py +33 -0
- essyntax-0.1.0/tests/test_package.py +102 -0
- essyntax-0.1.0/tests/test_parser.py +623 -0
- essyntax-0.1.0/uv.lock +1392 -0
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
name: Bug report
|
|
2
|
+
description: Wrong parse, exception or crash
|
|
3
|
+
labels: ["bug"]
|
|
4
|
+
body:
|
|
5
|
+
- type: textarea
|
|
6
|
+
id: description
|
|
7
|
+
attributes:
|
|
8
|
+
label: What happens
|
|
9
|
+
description: What you expected and what you got
|
|
10
|
+
validations:
|
|
11
|
+
required: true
|
|
12
|
+
- type: textarea
|
|
13
|
+
id: reproduce
|
|
14
|
+
attributes:
|
|
15
|
+
label: How to reproduce
|
|
16
|
+
description: The sentence or minimal code that trigger the bug and the full traceback, if any
|
|
17
|
+
render: python
|
|
18
|
+
validations:
|
|
19
|
+
required: true
|
|
20
|
+
- type: input
|
|
21
|
+
id: version
|
|
22
|
+
attributes:
|
|
23
|
+
label: esSyntax version
|
|
24
|
+
description: "`python -c \"import essyntax; print(essyntax.__version__)\"`"
|
|
25
|
+
placeholder: "0.1.0"
|
|
26
|
+
validations:
|
|
27
|
+
required: true
|
|
28
|
+
- type: input
|
|
29
|
+
id: environment
|
|
30
|
+
attributes:
|
|
31
|
+
label: Python and OS
|
|
32
|
+
placeholder: "Python 3.12, macOS 15"
|
|
33
|
+
validations:
|
|
34
|
+
required: true
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
name: Feature request
|
|
2
|
+
description: A new feature of the parser or the API
|
|
3
|
+
labels: ["enhancement"]
|
|
4
|
+
body:
|
|
5
|
+
- type: textarea
|
|
6
|
+
id: problem
|
|
7
|
+
attributes:
|
|
8
|
+
label: What problem does it solve
|
|
9
|
+
description: What you want to do with texts and why the current features are not enough
|
|
10
|
+
validations:
|
|
11
|
+
required: true
|
|
12
|
+
- type: textarea
|
|
13
|
+
id: proposal
|
|
14
|
+
attributes:
|
|
15
|
+
label: Proposed solution
|
|
16
|
+
description: How it could look in the API - a function, a parameter and an example of the result
|
|
17
|
+
- type: checkboxes
|
|
18
|
+
id: contribution
|
|
19
|
+
attributes:
|
|
20
|
+
label: Contribution
|
|
21
|
+
options:
|
|
22
|
+
- label: I am willing to submit a pull request
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
## What was done
|
|
2
|
+
|
|
3
|
+
<!-- What changed and why. If the Python API, the parses or the model format change, say so explicitly: it goes into the release notes. If the pull request closes an issue: Closes #123 -->
|
|
4
|
+
|
|
5
|
+
## Verification
|
|
6
|
+
|
|
7
|
+
<!-- How it was checked: tests (what exactly they verify), `make lint`, `make test-cov`, `make docs-build` if the documentation changed. Reminder: the documentation and README are bilingual - `docs/*.md` + `docs/*.es.md`, `README.md` + `README.es.md` -->
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
version: 2
|
|
2
|
+
updates:
|
|
3
|
+
- package-ecosystem: "uv"
|
|
4
|
+
directory: "/"
|
|
5
|
+
schedule:
|
|
6
|
+
interval: "monthly"
|
|
7
|
+
open-pull-requests-limit: 5
|
|
8
|
+
groups:
|
|
9
|
+
python-dependencies:
|
|
10
|
+
patterns: ["*"]
|
|
11
|
+
update-types: ["minor", "patch"]
|
|
12
|
+
|
|
13
|
+
- package-ecosystem: "cargo"
|
|
14
|
+
directory: "/"
|
|
15
|
+
schedule:
|
|
16
|
+
interval: "monthly"
|
|
17
|
+
open-pull-requests-limit: 5
|
|
18
|
+
labels: ["dependencies"]
|
|
19
|
+
groups:
|
|
20
|
+
rust-dependencies:
|
|
21
|
+
patterns: ["*"]
|
|
22
|
+
update-types: ["minor", "patch"]
|
|
23
|
+
|
|
24
|
+
- package-ecosystem: "github-actions"
|
|
25
|
+
directory: "/"
|
|
26
|
+
schedule:
|
|
27
|
+
interval: "monthly"
|
|
28
|
+
groups:
|
|
29
|
+
github-actions:
|
|
30
|
+
patterns: ["*"]
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
name: build
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches:
|
|
6
|
+
- master
|
|
7
|
+
pull_request:
|
|
8
|
+
|
|
9
|
+
permissions:
|
|
10
|
+
contents: read
|
|
11
|
+
|
|
12
|
+
concurrency:
|
|
13
|
+
group: ${{ github.workflow }}-${{ github.ref }}
|
|
14
|
+
cancel-in-progress: true
|
|
15
|
+
|
|
16
|
+
jobs:
|
|
17
|
+
lint:
|
|
18
|
+
runs-on: ubuntu-latest
|
|
19
|
+
timeout-minutes: 30
|
|
20
|
+
steps:
|
|
21
|
+
- name: Checkout
|
|
22
|
+
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
23
|
+
- name: Setup uv
|
|
24
|
+
uses: astral-sh/setup-uv@1db35dd8eee11c5894872e0b383ae6c406cf738d # v10.4.0
|
|
25
|
+
with:
|
|
26
|
+
version: "0.13.5"
|
|
27
|
+
enable-cache: true
|
|
28
|
+
- name: Setup Rust
|
|
29
|
+
uses: dtolnay/rust-toolchain@683b588c487a69d01f6c6ddf40f036ff682cc2c8 # master
|
|
30
|
+
with:
|
|
31
|
+
toolchain: stable
|
|
32
|
+
components: rustfmt, clippy
|
|
33
|
+
- name: Cache Rust
|
|
34
|
+
uses: Swatinem/rust-cache@d1527c8f67ef9af357290475d4af4b0fab8f12e0 # v2.9.3
|
|
35
|
+
- name: Install dependencies
|
|
36
|
+
run: uv sync --locked --no-default-groups --group lint
|
|
37
|
+
- name: Ruff
|
|
38
|
+
run: |
|
|
39
|
+
uv run --no-sync ruff check python scripts tests
|
|
40
|
+
uv run --no-sync ruff format python scripts tests --check
|
|
41
|
+
- name: Ruff format of the Python in Markdown
|
|
42
|
+
run: git ls-files -z '*.md' | xargs -0 uv run --no-sync ruff format --check
|
|
43
|
+
- name: Mypy
|
|
44
|
+
run: uv run --no-sync mypy
|
|
45
|
+
- name: Stubtest
|
|
46
|
+
run: uv run --no-sync python -m mypy.stubtest essyntax._essyntax
|
|
47
|
+
- name: Rustfmt
|
|
48
|
+
run: cargo fmt --all --check
|
|
49
|
+
- name: Clippy
|
|
50
|
+
run: cargo clippy --workspace --all-targets --locked -- -D warnings
|
|
51
|
+
|
|
52
|
+
test:
|
|
53
|
+
name: test (${{ matrix.python-version }}${{ matrix.os != 'ubuntu-latest' && format(', {0}', matrix.os) || '' }})
|
|
54
|
+
runs-on: ${{ matrix.os }}
|
|
55
|
+
timeout-minutes: 30
|
|
56
|
+
strategy:
|
|
57
|
+
fail-fast: false
|
|
58
|
+
matrix:
|
|
59
|
+
os: [ubuntu-latest]
|
|
60
|
+
python-version: ["3.11", "3.12", "3.13", "3.14", "3.15"]
|
|
61
|
+
include:
|
|
62
|
+
- os: ubuntu-latest
|
|
63
|
+
python-version: "3.14t"
|
|
64
|
+
- os: ubuntu-latest
|
|
65
|
+
python-version: "3.15t"
|
|
66
|
+
- os: windows-latest
|
|
67
|
+
python-version: "3.12"
|
|
68
|
+
- os: macos-latest
|
|
69
|
+
python-version: "3.12"
|
|
70
|
+
steps:
|
|
71
|
+
- name: Checkout
|
|
72
|
+
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
73
|
+
- name: Setup uv
|
|
74
|
+
uses: astral-sh/setup-uv@1db35dd8eee11c5894872e0b383ae6c406cf738d # v10.4.0
|
|
75
|
+
with:
|
|
76
|
+
version: "0.13.5"
|
|
77
|
+
enable-cache: true
|
|
78
|
+
python-version: ${{ matrix.python-version }}
|
|
79
|
+
- name: Setup Rust
|
|
80
|
+
uses: dtolnay/rust-toolchain@683b588c487a69d01f6c6ddf40f036ff682cc2c8 # master
|
|
81
|
+
with:
|
|
82
|
+
toolchain: stable
|
|
83
|
+
- name: Cache Rust
|
|
84
|
+
uses: Swatinem/rust-cache@d1527c8f67ef9af357290475d4af4b0fab8f12e0 # v2.9.3
|
|
85
|
+
- name: Install dependencies
|
|
86
|
+
run: uv sync --locked --no-default-groups --group test
|
|
87
|
+
- name: Run tests
|
|
88
|
+
run: uv run --no-sync pytest --cov essyntax ${{ endsWith(matrix.python-version, 't') && '--cov-fail-under=0' || '' }}
|
|
89
|
+
- name: Run Rust tests
|
|
90
|
+
run: cargo test -p essyntax --all-features --locked
|
|
91
|
+
|
|
92
|
+
msrv:
|
|
93
|
+
runs-on: ubuntu-latest
|
|
94
|
+
timeout-minutes: 30
|
|
95
|
+
steps:
|
|
96
|
+
- name: Checkout
|
|
97
|
+
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
98
|
+
- name: Setup Rust
|
|
99
|
+
uses: dtolnay/rust-toolchain@683b588c487a69d01f6c6ddf40f036ff682cc2c8 # master
|
|
100
|
+
with:
|
|
101
|
+
toolchain: "1.88"
|
|
102
|
+
- name: Cache Rust
|
|
103
|
+
uses: Swatinem/rust-cache@d1527c8f67ef9af357290475d4af4b0fab8f12e0 # v2.9.3
|
|
104
|
+
- name: Check
|
|
105
|
+
run: cargo check --workspace --all-targets --locked
|
|
106
|
+
|
|
107
|
+
docs:
|
|
108
|
+
runs-on: ubuntu-latest
|
|
109
|
+
timeout-minutes: 30
|
|
110
|
+
steps:
|
|
111
|
+
- name: Checkout
|
|
112
|
+
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
113
|
+
- name: Setup uv
|
|
114
|
+
uses: astral-sh/setup-uv@1db35dd8eee11c5894872e0b383ae6c406cf738d # v10.4.0
|
|
115
|
+
with:
|
|
116
|
+
version: "0.13.5"
|
|
117
|
+
enable-cache: true
|
|
118
|
+
python-version: "3.13"
|
|
119
|
+
- name: Install dependencies
|
|
120
|
+
run: uv sync --locked --only-group docs
|
|
121
|
+
- name: Build docs
|
|
122
|
+
run: uv run --no-sync mkdocs build --strict
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
name: docs
|
|
2
|
+
|
|
3
|
+
# The site describes the released version: it is published on a release tag, not from master
|
|
4
|
+
on:
|
|
5
|
+
push:
|
|
6
|
+
tags:
|
|
7
|
+
- "[0-9]+.[0-9]+.[0-9]+"
|
|
8
|
+
workflow_dispatch:
|
|
9
|
+
|
|
10
|
+
concurrency:
|
|
11
|
+
group: docs
|
|
12
|
+
cancel-in-progress: false
|
|
13
|
+
|
|
14
|
+
jobs:
|
|
15
|
+
deploy:
|
|
16
|
+
runs-on: ubuntu-latest
|
|
17
|
+
timeout-minutes: 30
|
|
18
|
+
permissions:
|
|
19
|
+
contents: write
|
|
20
|
+
steps:
|
|
21
|
+
- name: Checkout
|
|
22
|
+
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
23
|
+
with:
|
|
24
|
+
fetch-depth: 0
|
|
25
|
+
- name: Setup uv
|
|
26
|
+
uses: astral-sh/setup-uv@1db35dd8eee11c5894872e0b383ae6c406cf738d # v10.4.0
|
|
27
|
+
with:
|
|
28
|
+
version: "0.13.5"
|
|
29
|
+
enable-cache: true
|
|
30
|
+
python-version: "3.13"
|
|
31
|
+
- name: Install dependencies
|
|
32
|
+
run: uv sync --locked --only-group docs
|
|
33
|
+
- name: Configure git
|
|
34
|
+
run: |
|
|
35
|
+
git config user.name "github-actions[bot]"
|
|
36
|
+
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
|
|
37
|
+
- name: Deploy
|
|
38
|
+
run: uv run --no-sync mkdocs gh-deploy --force --strict
|