jnprofile-python

jnprofile-python is the Python profile of jnterfaces. A profile sets up a project in one language. It has tools, for example lint, and each tool brings its packages, its parts of the config files and its recipes. A recipe is a command of the project’s Justfile, such as just lint.

The profile is for a Python project with uv. The installer finds such a project by its pyproject.toml or uv.lock.

Install

Run this command in a project that has the jnterfaces installer:

just install --profile python

In a folder with no pyproject.toml, the command first runs uv init --bare --no-workspace. It then installs the tools lint, test and docstring. If you do not choose other roles, it also turns on the default roles of the profile, tasker and prose. The section The roles of the jnterfaces guide says what each role installs.

Then add or remove a tool:

just install typecheck
just uninstall lint

The machine needs just and uv. uv runs Python and the tools. To install Python and every dependency into .venv, run just setup.

The tools

Tool Packages Recipes
lint ruff just fmt, just fmt-check, just lint
test pytest, pytest-cov just test, just coverage-check, just cov
docstring none; uv runs interrogate just docstring-check
typecheck ty just typecheck

The tools gives each recipe and each part that a tool adds to a config file.

How the parts work

A part is the piece of a shared config file that a tool owns. just install adds the part, and just uninstall takes out only that part. Your own settings stay. A part is an include, a block of lines or one or more units. A unit is one key or one item of a list.

  • ruff.toml gets an include. The installer writes the settings of the profile to .agents/config/python/ruff.toml, and adds extend = ".agents/config/python/ruff.toml" to your ruff.toml. A setting in your ruff.toml wins over the setting of the profile.
  • pyproject.toml gets the unit tool.uv.default-groups = "all". So uv sync and uv run install the dependency groups of every tool.
  • The test tool adds the unit tool.pytest.ini_options.pythonpath = ["."] to pyproject.toml. So a test in tests/ can import a module at the top of the project. If you have a pytest config of your own, such as pytest.ini, the installer leaves out the part.
  • ty.toml gets units. Each unit has a comment on the line before it, which names its owner.
  • .gitignore and .worktreedisposable get a block of lines. A block starts and ends with a comment that names its owner.

Do not edit a file under .agents/config/. Only the installer writes these files. The section Shared files and the record of the jnterfaces guide says how the installer keeps a record of each part.

The other sites