Skip to content

Open-source personal finance manager. Self-hosted, privacy-first.

feat: add mise to install dev dependencies (#393)

Pedro Magalhães4951f959a5d0
diff --git a/.gitignore b/.gitignore
index de25e18e..d58931ff 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,3 +1,4 @@
+.venv/
.env
secrets/
.worktrees/
diff --git a/README.md b/README.md
index d9541cef..db2b78cf 100644
--- a/README.md
+++ b/README.md
@@ -177,6 +177,30 @@ pytest
docker compose up --build
```
+If you've [mise](https://mise.jdx.dev/) installed, you can install backend/frontend directly with it:
+
+```
+# Install the Python version specified in .python-version,
+# and create a project virtual environment using that Python.
+# Install all tools and dependencies (include Python with dedicated venv)
+mise //...:install
+
+# Install only backend tools/deps
+mise backend:install
+
+# Run backend tests
+mise backend:test
+
+# Install frontend dependencies
+mise frontend:install
+
+# Run frontend linting
+mise frontend:lint
+
+# Run frontend build
+mise frontend:build
+```
+
## Contributing
See [CONTRIBUTING.md](CONTRIBUTING.md) for guidelines.
diff --git a/backend/.python-version b/backend/.python-version
new file mode 100644
index 00000000..24ee5b1b
--- /dev/null
+++ b/backend/.python-version
@@ -0,0 +1 @@
+3.13
diff --git a/backend/mise.toml b/backend/mise.toml
new file mode 100644
index 00000000..67404917
--- /dev/null
+++ b/backend/mise.toml
@@ -0,0 +1,15 @@
+[env]
+_.python.venv = { path = ".venv", create = true }
+
+[settings]
+idiomatic_version_file_enable_tools = ["python"]
+
+[tasks.install]
+alias = "i"
+run = "uv pip install -e '.[dev]'"
+
+[tasks.lint]
+run = "ruff check ."
+
+[tasks.test]
+run = "pytest --cov=app --cov-report=term-missing"
diff --git a/frontend/mise.toml b/frontend/mise.toml
new file mode 100644
index 00000000..d0f8d674
--- /dev/null
+++ b/frontend/mise.toml
@@ -0,0 +1,12 @@
+[tools]
+node = "22"
+
+[tasks.install]
+alias = "i"
+run = "npm install"
+
+[tasks.lint]
+run = "npm run lint"
+
+[tasks.build]
+run = "npm run build"
diff --git a/mise.toml b/mise.toml
new file mode 100644
index 00000000..8a988be2
--- /dev/null
+++ b/mise.toml
@@ -0,0 +1,5 @@
+min_version = "2026.7.0"
+monorepo_root = true
+
+[monorepo]
+config_roots = ["backend/", "frontend/"]