Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
3435c4f
Implement UV
jams2 Oct 27, 2024
1843f44
Format core
jams2 Oct 27, 2024
302acee
Add new core and hy interface
jams2 Oct 27, 2024
bf08ccc
Replace old core with new, remove fd and goals
jams2 Oct 27, 2024
784b0dd
fix: Add occurs check to extend_substitution
jams2 Oct 27, 2024
6df0545
feat: Add more tests to test_core
jams2 Oct 27, 2024
5a5d544
fix: Add missing imports to test_core.py
jams2 Oct 27, 2024
49d9118
fix: Fix import order in test_core.py
jams2 Oct 27, 2024
d8ddebc
feat: Split test_stream_operations into separate test functions
jams2 Oct 27, 2024
bcca801
fix: Split `test_stream_operations` into separate test functions
jams2 Oct 27, 2024
a4d703b
feat: add test for unifying var with incompatible nested sequence
jams2 Oct 27, 2024
afd41e6
Add tests
jams2 Oct 27, 2024
54804a7
feat: Add docstring for call_fresh function
jams2 Oct 28, 2024
38d402b
feat: Add test suite for tabling functionality
jams2 Oct 29, 2024
34f4807
feat: Add tests for tabling behavior
jams2 Oct 29, 2024
8149dc2
Add pytest conf for hy
jams2 Oct 29, 2024
bab388e
fix: Fix occurs check in extend_substitution
jams2 Oct 29, 2024
7206e27
feat: Add pytest.mark.parametrize to test_unify_sequences
jams2 Oct 29, 2024
69ed445
Bump fastcons
jams2 Nov 3, 2024
0bf86b7
Update Var representation to use module-scoped counter for ID
jams2 Nov 3, 2024
6f23d80
Make tabling tests more explicit
jams2 Nov 3, 2024
86e0b24
Test UV in CI
jams2 Nov 3, 2024
89fcf27
Add temporary fix for run in lang.hy
jams2 Nov 3, 2024
2daebd3
Get correct var names in call_fresh for tabled forms
jams2 Nov 7, 2024
e07c07d
Add more tabling tests
jams2 Nov 7, 2024
c6acb6f
Remove hyrule for now
jams2 Nov 7, 2024
ced2bf5
Add tox-uv
jams2 Nov 7, 2024
3d28be8
Add uv-lock pre-commit
jams2 Nov 7, 2024
29b432f
Update publish workflow
jams2 Nov 8, 2024
5765966
Update CI workflows
jams2 Nov 8, 2024
718f59c
Trigger CI
jams2 Nov 9, 2024
7dd459b
Add basic defne implementation, tests
jams2 Nov 10, 2024
c78c401
Update readme/comments
jams2 Nov 10, 2024
ae8fb5f
Add tutorial to readme
jams2 Nov 10, 2024
daa1c9d
Add API reference and pizza tutorial
jams2 Nov 10, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 9 additions & 6 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,18 @@ jobs:
id-token: write # required for trusted publishing

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: 3.11
cache: 'pip'
python-version: 3.12
- name: Install dependencies
run: pip install .[build]
run: |
curl -LsSf https://astral.sh/uv/install.sh | sh
echo "$HOME/.local/bin" >> $GITHUB_PATH
uv venv
uv sync --extra=dev
- name: Build package
run: hatch build
run: uv build
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
31 changes: 24 additions & 7 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,29 +25,46 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-python@v4
with:
python-version: ${{env.PYTHON_LATEST}}
- uses: pre-commit/action@v3.0.0
- name: Install UV
run: |
curl -LsSf https://astral.sh/uv/install.sh | sh
echo "$HOME/.local/bin" >> $GITHUB_PATH
uv venv
uv sync --all-extras
. .venv/bin/activate
- name: Run ruff
run: |
. .venv/bin/activate
ruff check .
ruff format --check .

test:
runs-on: ubuntu-latest
needs: lint
strategy:
matrix:
python: ['3.11', '3.12']
python: ['3.12', '3.13']

steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python }}
- name: Install UV
run: |
curl -LsSf https://astral.sh/uv/install.sh | sh
echo "$HOME/.local/bin" >> $GITHUB_PATH

- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install tox tox-gh-actions
uv venv
. .venv/bin/activate
uv pip install -e '.[dev,hy]'
- name: Test with tox
run: tox -- -v
run: |
. .venv/bin/activate
tox -- -v
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -133,3 +133,4 @@ prof
profiling.py
sudoku.py
.ccls-cache
.aider*
8 changes: 7 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,15 @@ repos:
- id: blacken-docs
additional_dependencies: [black==23.10.0]
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: 'v0.1.2'
rev: 'v0.7.1'
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
- id: ruff-format
args: [--check]
- repo: https://github.com/astral-sh/uv-pre-commit
# uv version.
rev: 0.4.30
hooks:
# Update the uv lockfile
- id: uv-lock
Loading