Skip to content

Update pyproject.toml - #202

Closed
ns-rse wants to merge 5 commits into
mainfrom
ns-rse/200-pyproject-dependency-group
Closed

ns-rse wants to merge 5 commits into
mainfrom
ns-rse/200-pyproject-dependency-group

Conversation

@ns-rse

@ns-rse ns-rse commented Oct 16, 2026 •

Copy link
Copy Markdown
Collaborator

Closes #201

  • Moves package.optional-dependencies to dependency-groups
  • Adds uv.lock file should people wish to use uv to manage virtual environments whilst working on this package.
  • Adds pytest-xdist to test packages
  • Adds the following .pre-commit hooks.
    • ruff > ruff-check
    • ruff-format
    • validate-pyproject
    • uv-lock

The package would benefit from using [`uv`](https://docs.astral.sh/uv) to ease installation and management of virtual
environments if users require to use it so including the `uv.lock` file. A pre-commit hook is included which checks it
is up-to-date.
Closes #200

- Updates `uv.lock` to reflect these changes in structure.
- Adds `pytest-xdist` as a dev dependency should users wish to use it.
- Removes duplications from the `depenency-groups` (nee `project.optional-dependencies`).
The width of images was extracted along with the length and the pixel to nanometre scaling calculated on both axes
within a tuple, but only the length scaling was ever used, this means the extraction and calculation is on the width
axis is redundant and has therefore been removed.

Tests still pass.
- Ruff pre-commit hooks have changed names and been split into `ruff-check` and `ruff-format`
- Adds the `validate-pyproject` hook to check `pyproject.toml` is valid.
@ns-rse ns-rse added ci Continuous Integration jpk labels Oct 16, 2026
@ns-rse ns-rse closed this Oct 16, 2026
@ns-rse
ns-rse deleted the ns-rse/200-pyproject-dependency-group branch October 16, 2026 12:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci Continuous Integration jpk

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Switch to dependency groups

1 participant