Skip to content

Commit

Permalink
Change project to use uv
Browse files Browse the repository at this point in the history
  • Loading branch information
abidsikder committed Nov 14, 2024
1 parent 99e9e1b commit f23b651
Show file tree
Hide file tree
Showing 10 changed files with 805 additions and 121 deletions.
9 changes: 0 additions & 9 deletions .pylintrc

This file was deleted.

1 change: 1 addition & 0 deletions .python-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.11
36 changes: 26 additions & 10 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,11 +1,27 @@
# pyproject.toml
[build-system]
requires = [
"setuptools>=45",
"wheel",
"setuptools_scm>=6.2"
[project]
name = "ipldstore"
version = "0.1.0"
description = "KV store for Zarr"
readme = "README.md"
requires-python = ">=3.11"
dependencies = [
"multiformats[full]>=0.3.1.post4",
"py-hamt",
"zarr>=2.18.3",
]
build-backend = "setuptools.build_meta"
[tool.setuptools_scm]
version_scheme = "post-release"
local_scheme = "no-local-version"

[dependency-groups]
dev = [
"hypothesis>=6.118.8",
"memray>=1.14.0",
"pdoc>=15.0.0",
"py-hamt",
"pytest-cov>=6.0.0",
"pytest>=8.3.3",
"ruff>=0.7.3",
"snakeviz>=2.2.2",
]

# TODO temporary update to just use the plain git without a commit hash once version 2 is out and merged in
[tool.uv.sources]
py-hamt = { git = "https://github.com/dClimate/py-hamt", rev = "1ce68f7ecd64e2c0cf14550338832bf694ced97d" }
4 changes: 4 additions & 0 deletions pyrightconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"venvPath": ".",
"venv": ".venv"
}
2 changes: 0 additions & 2 deletions requirements.txt

This file was deleted.

13 changes: 13 additions & 0 deletions run-checks.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/bin/bash

# Run pytest with coverage
uv run pytest --cov=py_hamt tests/

# Check coverage
uv run coverage report --fail-under=100 --show-missing

# Check linting with ruff
uv run ruff check

# Auto format with ruff
uv run ruff format
59 changes: 0 additions & 59 deletions setup.cfg

This file was deleted.

8 changes: 0 additions & 8 deletions test_requirements.txt

This file was deleted.

33 changes: 0 additions & 33 deletions tox.ini

This file was deleted.

761 changes: 761 additions & 0 deletions uv.lock

Large diffs are not rendered by default.

0 comments on commit f23b651

Please sign in to comment.