-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'polymorphism' into polytypes
- Loading branch information
Showing
191 changed files
with
7,153 additions
and
1,087 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
3afc4a6373239c357df30b3b91c23bf0c8362107 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,43 +15,37 @@ jobs: | |
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python-version: ["3.10", "3.11"] | ||
python-version: [ "3.10", "3.11", "3.12" ] | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install flake8 pytest mypy | ||
if [ -f requirements.pip ]; then pip install -r requirements.pip; fi | ||
- name: Lint with mypy | ||
run: | | ||
mypy aeon | ||
- name: Lint with flake8 | ||
run: | | ||
# stop the build if there are Python syntax errors or undefined names | ||
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics | ||
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide | ||
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics | ||
- name: Check install | ||
run: | | ||
pip install -e . | ||
- name: Test with pytest | ||
run: | | ||
pytest | ||
- name: Run Aeon Core Files | ||
run: | | ||
files=$(find examples/core -type f -name '*_main.ae') | ||
for file in $files; do | ||
python aeon $file --core --log INFO ERROR TYPECHECKER CONSTRAINT | ||
done | ||
- name: Run Aeon Sugar Files | ||
run: | | ||
files=$(find examples/sugar -type f -name '*_main.ae') | ||
for file in $files; do | ||
python aeon $file --log INFO ERROR TYPECHECKER CONSTRAINT | ||
done | ||
- uses: actions/[email protected] | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade uv | ||
uv pip install --system flake8 pytest mypy pre-commit-uv | ||
if [ -f requirements.pip ]; then uv pip install --system -r requirements.pip; fi | ||
- name: Lint with pre-commit | ||
run: | | ||
pre-commit run --all-files | ||
- name: Lint with mypy | ||
run: | | ||
mypy aeon --no-strict-optional --ignore-missing-imports | ||
- name: Lint with flake8 | ||
run: | | ||
# stop the build if there are Python syntax errors or undefined names | ||
flake8 --extend-exclude .venv . --count --select=E9,F63,F7,F82 --show-source --statistics | ||
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide | ||
flake8 --extend-exclude .venv . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics | ||
- name: Check install | ||
run: | | ||
uv pip install --system -e . | ||
- name: Test with pytest | ||
run: | | ||
pytest | ||
- name: Run Benchmarks | ||
run: | | ||
bash run_examples.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
name: Ruff | ||
on: [push, pull_request] | ||
jobs: | ||
ruff: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/[email protected] | ||
- uses: chartboost/ruff-action@v1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1,46 @@ | ||
repos: | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.4.0 | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v5.0.0 | ||
hooks: | ||
- id: check-yaml | ||
- id: check-toml | ||
- id: check-merge-conflict | ||
- id: end-of-file-fixer | ||
- id: trailing-whitespace | ||
- id: check-docstring-first | ||
- id: name-tests-test | ||
- id: requirements-txt-fixer | ||
- id: mixed-line-ending | ||
- repo: https://github.com/asottile/setup-cfg-fmt | ||
rev: v2.4.0 | ||
hooks: | ||
- id: setup-cfg-fmt | ||
- repo: https://github.com/asottile/pyupgrade | ||
rev: v3.13.0 | ||
- id: check-yaml | ||
- id: check-toml | ||
- id: check-merge-conflict | ||
- id: end-of-file-fixer | ||
- id: trailing-whitespace | ||
- id: check-docstring-first | ||
- id: name-tests-test | ||
- id: requirements-txt-fixer | ||
- id: mixed-line-ending | ||
- repo: https://github.com/asottile/setup-cfg-fmt | ||
rev: v2.7.0 | ||
hooks: | ||
- id: pyupgrade | ||
args: [--py310-plus] | ||
- repo: https://github.com/hadialqattan/pycln | ||
rev: v2.2.2 | ||
- id: setup-cfg-fmt | ||
# Disabled because of pre-commit 4 incompatibility | ||
# - repo: https://github.com/PyCQA/docformatter | ||
# rev: 06907d0267368b49b9180eed423fae5697c1e909 | ||
# hooks: | ||
# - id: docformatter | ||
- repo: https://github.com/hadialqattan/pycln | ||
rev: v2.4.0 | ||
hooks: | ||
- id: pycln | ||
- id: pycln | ||
args: [--config=pyproject.toml] | ||
- repo: https://github.com/pre-commit/mirrors-mypy | ||
rev: v1.6.0 | ||
- repo: https://github.com/pre-commit/mirrors-mypy | ||
rev: v1.13.0 | ||
hooks: | ||
- id: mypy | ||
args: [--no-strict-optional, --ignore-missing-imports] | ||
- repo: https://github.com/charliermarsh/ruff-pre-commit | ||
rev: v0.1.0 | ||
- id: mypy | ||
args: | ||
[ | ||
--no-strict-optional, | ||
--ignore-missing-imports, | ||
--explicit-package-bases, | ||
] | ||
- repo: https://github.com/charliermarsh/ruff-pre-commit | ||
rev: v0.8.1 | ||
hooks: | ||
- id: ruff | ||
args: [--fix, --exit-non-zero-on-fix] | ||
- repo: https://github.com/regebro/pyroma | ||
- repo: https://github.com/regebro/pyroma | ||
rev: "4.2" | ||
hooks: | ||
- id: pyroma | ||
- id: pyroma |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.