Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
7 changes: 7 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,13 @@ jobs:
run: |
python -m pip install --upgrade pip
pip install -e ".[dev,visualize]"
- name: Run lint
run: ruff check .
- name: Run type check (non-blocking)
continue-on-error: true
run: pyright
- name: Smoke check
run: python -c "import delphi; print(delphi.__version__)"
- name: Run tests
run: pytest
- name: build
Expand Down
9 changes: 6 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ dependencies = [
dev = [
"pytest",
"pyright==1.1.378",
"pytest-beartype", "pytest-asyncio", "setuptools", "pre-commit"
"pytest-beartype", "pytest-asyncio", "setuptools", "pre-commit", "ruff"
]
visualize = [
"kaleido==0.2.1",
Expand All @@ -54,14 +54,16 @@ include = ["delphi*"]
[tool.ruff]
# TODO: Clean up or remove experiments folder.
exclude = ["experiments", "**/prompts/*", "**/prompts.py","**/simulator.py"]
# Same as Black.
line-length = 88

[tool.ruff.lint]
# Avoid automatically removing unused imports in __init__.py files.
# Such imports will be flagged with a dedicated message suggesting
# that the import is either added to the module's __all__ symbol
ignore-init-module-imports = true
# Ignore F821 (undefined name) errors, as they are common in type annotations.
ignore = ["F722", "F821"]
# Same as Black.
line-length = 88
# Enable pycodestyle (`E`), Pyflakes (`F`), and isort (`I`) codes
# See https://beta.ruff.rs/docs/rules/ for more possible rules
select = ["E", "F", "I"]
Expand Down Expand Up @@ -135,3 +137,4 @@ upload_to_vcs_release = true

[tool.pytest.ini_options]
beartype_packages = "delphi"
testpaths = ["tests"]
Loading