diff --git a/flake.nix b/flake.nix index a475f95..b3b10c0 100644 --- a/flake.nix +++ b/flake.nix @@ -91,7 +91,7 @@ "Cargo.toml" "Cargo.lock" "pyproject.toml" - "unblob_native" + "python" "benches" "src" "README.md" diff --git a/pyproject.toml b/pyproject.toml index f441959..83b4ee7 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -41,6 +41,7 @@ build-backend = "maturin" [tool.maturin] module-name = "unblob_native._native" +python-source = "python" features = [ "pyo3/extension-module", # This is an extension module @@ -92,7 +93,7 @@ ignore = [ ] [tool.ruff.per-file-ignores] -"unblob_native/__init__.py" = [ +"python/unblob_native/__init__.py" = [ "F403", "A001", "F405", @@ -103,6 +104,9 @@ ignore = [ "S101", # assert: Enable usage of asserts ] +[tool.ruff.isort] +known-first-party = ["unblob_native"] + [tool.ruff.flake8-pytest-style] fixture-parentheses = false mark-parentheses = false diff --git a/unblob_native/__init__.py b/python/unblob_native/__init__.py similarity index 100% rename from unblob_native/__init__.py rename to python/unblob_native/__init__.py diff --git a/unblob_native/_native/__init__.pyi b/python/unblob_native/_native/__init__.pyi similarity index 100% rename from unblob_native/_native/__init__.pyi rename to python/unblob_native/_native/__init__.pyi diff --git a/unblob_native/_native/math_tools.pyi b/python/unblob_native/_native/math_tools.pyi similarity index 100% rename from unblob_native/_native/math_tools.pyi rename to python/unblob_native/_native/math_tools.pyi diff --git a/unblob_native/py.typed b/python/unblob_native/py.typed similarity index 100% rename from unblob_native/py.typed rename to python/unblob_native/py.typed