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 pythonIn 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 lintThe 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.tomlgets an include. The installer writes the settings of the profile to.agents/config/python/ruff.toml, and addsextend = ".agents/config/python/ruff.toml"to yourruff.toml. A setting in yourruff.tomlwins over the setting of the profile.pyproject.tomlgets the unittool.uv.default-groups = "all". Souv syncanduv runinstall the dependency groups of every tool.- The
testtool adds the unittool.pytest.ini_options.pythonpath = ["."]topyproject.toml. So a test intests/can import a module at the top of the project. If you have a pytest config of your own, such aspytest.ini, the installer leaves out the part. ty.tomlgets units. Each unit has a comment on the line before it, which names its owner..gitignoreand.worktreedisposableget 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
- jnterfaces: the installer, and the
just,jagt-protocolandcxskills. - jnprofile-typescript: the TypeScript profile.
- agent_gest_git_skills: the tasker role and its g skills, the skills whose names start with g.