Skip to content

Commit cebd8fb

Browse files
committed
add LeanDojo-v2
1 parent 4759096 commit cebd8fb

155 files changed

Lines changed: 14373 additions & 5642 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 0 additions & 23 deletions
This file was deleted.

.github/workflows/format_code.yaml

Lines changed: 0 additions & 11 deletions
This file was deleted.

.github/workflows/push_pr.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: ["*"]
6+
pull_request:
7+
branches: ["*"]
8+
9+
jobs:
10+
build-release:
11+
runs-on: ${{ matrix.os }}
12+
strategy:
13+
matrix:
14+
os: [macos-latest, ubuntu-latest, windows-latest]
15+
name: BuildRelease
16+
steps:
17+
- name: Checkout project
18+
uses: actions/checkout@v4
19+
with:
20+
fetch-depth: 0
21+
- name: Set up elan
22+
run: curl https://raw.githubusercontent.com/leanprover/elan/master/elan-init.sh -sSf | sh -s -- -y
23+
- name: Build project
24+
run: ~/.elan/bin/lake build
25+
working-directory: lean_dojo_v2/external_api

.github/workflows/pytest.yml

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
name: Pytest
2+
3+
on:
4+
push:
5+
branches: ["*"]
6+
pull_request:
7+
branches: ["*"]
8+
9+
jobs:
10+
test:
11+
runs-on: ubuntu-latest
12+
strategy:
13+
matrix:
14+
python-version: ["3.11"]
15+
name: run pytest (Python ${{ matrix.python-version }})
16+
steps:
17+
- name: Checkout project
18+
uses: actions/checkout@v4
19+
with:
20+
fetch-depth: 0
21+
22+
- name: Install uv
23+
uses: astral-sh/setup-uv@v4
24+
with:
25+
version: "latest"
26+
27+
- name: Set up Python ${{ matrix.python-version }}
28+
uses: actions/setup-python@v5
29+
with:
30+
python-version: ${{ matrix.python-version }}
31+
32+
- name: Create virtual environment
33+
run: |
34+
uv venv
35+
36+
- name: Set up elan
37+
run: |
38+
curl https://raw.githubusercontent.com/leanprover/elan/master/elan-init.sh -sSf | sh -s -- -y
39+
echo "$HOME/.elan/bin" >> $GITHUB_PATH
40+
41+
- name: Install Pantograph
42+
run: |
43+
uv pip install git+https://github.com/stanford-centaur/PyPantograph
44+
45+
- name: Install project with dev dependencies
46+
run: |
47+
uv pip install -e ".[dev]"
48+
49+
- name: Run pytest
50+
env:
51+
GITHUB_ACCESS_TOKEN: ${{ secrets.GITHUB_ACCESS_TOKEN }}
52+
run: |
53+
source .venv/bin/activate
54+
pytest -vvv
55+

.github/workflows/type_check.yaml

Lines changed: 0 additions & 18 deletions
This file was deleted.

.gitignore

Lines changed: 41 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,13 @@
1-
leanpkg.path
1+
.lake
2+
.vscode
23
*.olean
4+
**/__pycache__
5+
*/.DS_Store
6+
7+
*.pkl
8+
retrieval/bm25
39

410
# Byte-compiled / optimized / DLL files
5-
__pycache__/
611
*.py[cod]
712
*$py.class
813

@@ -59,7 +64,6 @@ coverage.xml
5964
*.pot
6065

6166
# Django stuff:
62-
*.log
6367
local_settings.py
6468
db.sqlite3
6569
db.sqlite3-journal
@@ -131,5 +135,37 @@ dmypy.json
131135
# Pyre type checker
132136
.pyre/
133137

134-
# vscode debug config
135-
.vscode/
138+
# Jupyter notebooks
139+
.ipynb_checkpoints/
140+
141+
# Python-related
142+
__pycache__/
143+
.pytest_cache
144+
.mypy_cache/
145+
.coverage*
146+
.venv
147+
dist/
148+
149+
# Lean dependencies
150+
mathlib4/
151+
repl/
152+
153+
# Environment variables
154+
.env
155+
156+
# PostgreSQL data
157+
.data/
158+
159+
.*
160+
!.gitignore
161+
!.github
162+
163+
164+
dynamic_database.json
165+
*.jsonl
166+
*.ckpt
167+
*.json
168+
169+
raid/
170+
171+
outputs-*

.readthedocs.yaml

Lines changed: 0 additions & 35 deletions
This file was deleted.

0 commit comments

Comments
 (0)