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
1 change: 0 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ docs: setup
$(UVE) sync --frozen --group docs

setup:
git lfs install || echo '[FAIL] git-lfs could not be installed'
which uv || [ -d "${UV_INSTALL_DIR}" ] || (curl -LsSf https://astral.sh/uv/install.sh | sh -s - --quiet)
$(UVE) python install $(PYV)
rm -rf .venv
Expand Down
7 changes: 7 additions & 0 deletions configs/dev/whitelist.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# type: ignore
# ruff: noqa
thread_pool # unused variable (src/mpyflow/shared/interfaces/io.py:16)
str_to_bytes # unused function (src/mpyflow/shared/convert/enc_dec.py:1)
bytes_to_str # unused function (src/mpyflow/shared/convert/enc_dec.py:5)
get_worker_ctx # unused function (src/mpyflow/shared/context/process.py:8)
start_worker # unused function (src/mpyflow/run_wrapper.py:153)
2 changes: 1 addition & 1 deletion lefthook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ pre-commit:
run: mypy {staged_files}
- name: vulture
glob: "*.py"
run: vulture src/
run: vulture src/ configs/dev/whitelist.py
- name: shellcheck
glob: "*.sh"
run: shellcheck {staged_files}
Expand Down
31 changes: 12 additions & 19 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
[project]
name = "mpyflow"
version = "0.2.0"
description = """mPyFlow is a library designed to manage
multiprocessing workflows."""
description = "mPyFlow is a library designed to manage multiprocessing workflows."
readme = "README.md"
authors = [
{ name = "Artur Lissin", email = "[email protected]" },
Expand All @@ -14,13 +13,17 @@ dependencies = [
"rich ==14.1.0"
]

[tool.setuptools.packages.find]
where = ["src"]
include = ["mpyflow"]

[tool.uv]
package = true
default-groups = []

[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
requires = ["uv_build>=0.8.22,<0.9.0"]
build-backend = "uv_build"

[dependency-groups]
dev = [
Expand Down Expand Up @@ -140,6 +143,7 @@ requires = ["tox>=4.30"]

[tool.tox.env_run_base]
allowlist_externals = ["coverage"]
set_env = { PYTHONPATH = "src" }
commands = [
[
"coverage",
Expand All @@ -160,33 +164,22 @@ commands = [
[
"coverage",
"report",
],
],
]

[tool.coverage.run]
source = [
"src"
]
source = ["src/mpyflow"]
parallel = true

[tool.coverage.report]
show_missing = false
fail_under = 0

[tool.vulture]
exclude = [
"mpyflow/shared/interfaces",
"mpyflow/shared/convert",
"mpyflow/shared/context/process"
]
paths = ["configs/dev/whitelist.py", "src"]
ignore_decorators = ["@*",]
ignore_names = [
"model_config",
"formatwarning",
"start_worker"
]
ignore_names = ["model_config","formatwarning"]
make_whitelist = true
min_confidence = 60
paths = ["src"]
sort_by_size = true
verbose = false
Loading