Skip to content

Commit 6a28235

Browse files
committed
Merge branch 'main' of https://github.com/pchlenski/manify
2 parents 4ace2d2 + 9886838 commit 6a28235

Some content is hidden

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

51 files changed

+5646
-2533
lines changed

.github/workflows/test.yml

Lines changed: 23 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -12,24 +12,24 @@ jobs:
1212
strategy:
1313
fail-fast: false # don’t stop the matrix if one Python version fails
1414
matrix:
15-
python-version: ["3.9", "3.10", "3.11", "3.12"]
15+
python-version: ["3.10", "3.11"] # jaxtyping requires >= 3.10; scipy requires < 3.12
1616

1717
steps:
18+
# Setup and installation
1819
- name: Check out code
1920
uses: actions/checkout@v4
2021

2122
- name: Set up Python ${{ matrix.python-version }}
2223
uses: actions/setup-python@v5
2324
with:
2425
python-version: ${{ matrix.python-version }}
26+
cache: "pip"
2527

2628
- name: Install dependencies
2729
run: |
2830
python -m pip install --upgrade pip
29-
# install manify with test deps
30-
pip install -e ".[test]"
31-
# install all extras if any, but don’t fail CI if some optional deps are missing
32-
pip install -e ".[all]" || echo "Optional extras failed—continuing"
31+
pip install -e .
32+
pip install -e ".[dev]"
3333
3434
- name: Smoke‑test pip install manify
3535
run: |
@@ -38,17 +38,29 @@ jobs:
3838
print("manify version:", getattr(manify, "__version__", "unknown"))
3939
EOF
4040
41+
# Code quality checks
42+
- name: Check code formatting with Black
43+
run: black --check manify/ --line-length 120
44+
continue-on-error: true
45+
46+
- name: Check import ordering with isort
47+
run: isort --check-only --profile black manify/ --line-width 120
48+
continue-on-error: true
49+
50+
- name: Run pylint
51+
run: pylint manify/
52+
continue-on-error: true
53+
54+
# Type checking
4155
- name: Check type annotations with MyPy
42-
run: |
43-
# only check core modules—skip untyped imports
44-
mypy --ignore-missing-imports --no-warn-return-any --follow-imports=skip \
45-
manify/__init__.py manify/embedders manify/predictors manify/manifolds
56+
run: mypy manify/
4657
continue-on-error: true
4758

59+
# Unit testing
4860
- name: Run unit tests & collect coverage
49-
run: |
50-
pytest tests --cov=manify --cov-report=xml:coverage.xml
61+
run: pytest tests --cov=manify --cov-report=xml:coverage.xml
5162

63+
# Code coverage
5264
- name: Upload coverage to Codecov
5365
uses: codecov/codecov-action@v5
5466
with:

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,4 @@ notebooks/scratch*
1111
wandb/
1212
data/results_wandb/incremental/
1313
data/results_wandb/*incremental*
14+
site/

.pylintrc

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

.readthedocs.yaml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Read the Docs configuration file
2+
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
3+
4+
version: 2
5+
6+
# # Build documentation in the docs/ directory with Sphinx
7+
# sphinx:
8+
# configuration: docs/source/conf.py
9+
10+
mkdocs:
11+
configuration: mkdocs.yml
12+
13+
# Set the OS and Python version
14+
build:
15+
os: ubuntu-22.04
16+
tools:
17+
python: "3.10"
18+
19+
# Install dependencies
20+
python:
21+
install:
22+
- method: pip
23+
path: .
24+
extra_requirements: [docs]

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Manify: A Python Library for Learning Non-Euclidean Representations
2-
[![Python Version](https://img.shields.io/badge/python-3.8%2B-blue.svg)](https://www.python.org/downloads/)
2+
[![Python Version](https://img.shields.io/badge/python-3.10%2B-blue.svg)](https://www.python.org/downloads/)
33
[![License](https://img.shields.io/github/license/pchlenski/manify)](https://github.com/pchlenski/manify/blob/main/LICENSE)
44
[![PyPI version](https://badge.fury.io/py/manify.svg)](https://badge.fury.io/py/manify)
55
[![Tests](https://github.com/pchlenski/manify/actions/workflows/test.yml/badge.svg)](https://github.com/pchlenski/manify/actions/workflows/test.yml)

benchmark/benchmark.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
import sys
77
from tqdm.notebook import tqdm
88
from pathlib import Path
9-
from manify.utils.dataloaders import load
9+
from manify.utils.dataloaders_old import load
1010
from manify.utils.benchmarks import benchmark
1111
from manify.manifolds import ProductManifold
1212
from manify.embedders.coordinate_learning import train_coords
-465 KB
Loading

0 commit comments

Comments
 (0)