Danger level: Medium · Rule: none (the module's code, modules/stale-projects) · Since: 0.1.0
Example: .venv of a Python project you have not changed in a year
A Python project's virtual environment (.venv or venv): its own Python and the packages installed into it, in projects you have not changed for a long time. Made by you or your Python tools, when you set the project up.
Beside a project's marker file (pyproject.toml, setup.py): .venv and venv.
Your code stays; to work on the project again, make a new environment and install its packages, and find again any package you added by hand. It comes back only when you make the environment again. That is why its danger level is Medium.
The module stale-projects (code with a data table, modules/stale-projects/artifacts.toml). It never runs git, cargo, npm or any tool and never follows a link. Projects in ~/Library, the apps folders, an app bundle, a hidden folder of the home (~/.cargo, ~/.config) and the home itself are not looked at. A project inside another (a monorepo) is decided with its outermost project, as one group named by the outermost: the group's last activity is the newest of its projects' own, so a commit in a nested repository keeps the whole group, and a project of it that could not be dated keeps the group from being offered. The last activity is the newest change time of the project's folders (its artifact folders and .git left out) and of its git branches' folder; it does not see a file edited in place, which changes no folder's time, and a project whose artifact was removed by hand looks active, because removing it changed the project's folder. A project that could not be read in full is left out, never offered. A project that changed within the days of the setting Offer projects unchanged for (30 to 3650, 365 by default) is left out as recent; a project older than that is stale and its artifacts are offered, except one that itself changed within those days (a package installed into it last week), which is left out as recent, and one that is itself a project's folder, which is never claimed. The folders go to the Trash.