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
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
minimum_pre_commit_version: 2.2.0
default_language_version:
python: python3
default_stages: [commit]
default_stages: [pre-commit]
fail_fast: true
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
Expand Down Expand Up @@ -40,5 +40,5 @@ repos:
always_run: true
language: system
types: [python]
stages: [push]
stages: [pre-push]
verbose: true
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,26 @@ reproducibly generate, persist, and load artifacts using parameter based persist

# Installation

## Install as Dependency
```
pip install persistable
```

Note, this package requires Python 3.9+.

## Install as Contributor
The following assumes [uv](https://github.com/astral-sh/uv) is installed.

Clone this repo and install into a venv using uv:
```bash
uv sync
```

Install the pre-commit hooks
```bash
uv run pre-commit install
```

# How It Works
Each Persistable object has the following feature:

Expand Down
50 changes: 48 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,53 @@
[project]
name = "persistable"
dynamic = ["version"]
description = "Reproducible parameter based pipelines and persisting"
authors = [{ name = "Alexander Loosley", email = "aloosley@alumni.brown.edu" }, {name = "Stephan Sahm", email = "Stephan.Sahm@gmx.de"}]
readme = "README.md"
keywords = ["persisting", "models", "pipeline"]
requires-python = ">=3.9"
classifiers = [
"Intended Audience :: Developers",
"Programming Language :: Python :: 3"
]
dependencies = [
"numpy>=1.21.0",
]

[project.urls]
Repository = "https://github.com/aloosley/persistable"

[dependency-groups]
dev = [
"pre-commit>=2.19.0",
"pytest>=7.1.2",
]

[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"

[tool.hatch.version]
path = "persistable/__init__.py"

[tool.hatch.build.targets.sdist]
include = [
"persistable/"
]

[tool.hatch.build.targets.wheel]
packages = ["persistable/"]


[tool.black]
line-length = 120
target-version = ['py310']
target-version = ['py313']

[tool.flake8]
max-line-length = 120

[tool.mypy]
python_version = "3.10"
ignore_missing_imports = true

[tool.pytest.ini_options]
testpaths = ["tests"]
5 changes: 0 additions & 5 deletions setup.cfg

This file was deleted.

33 changes: 0 additions & 33 deletions setup.py

This file was deleted.

Loading
Loading