Repository navigation
Update pyproject.toml - #203
Merged
Merged
Conversation
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.
`validate-pyproject` hook identified issues with the config (things move on!) Means there are some changes to the code after linting with `ruff` but will include those in a separate commit.
ns-rse
force-pushed
the
ns-rse/201-pyproject-dependency-group
branch
2 times, most recently
from
October 16, 2026 13:10
79b2294 to
ea8f318
Compare
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #203 +/- ##
==========================================
- Coverage 79.84% 79.52% -0.33%
==========================================
Files 12 12
Lines 928 928
==========================================
- Hits 741 738 -3
- Misses 187 190 +3 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Updating `ruff` configuration identified lots of small changes that could be improved both in `pyproject.toml` for configuration of the tool and also in the code. - `dos2unix AFMReader/top.py` to remove `^M` from the file. - Enable more `ruff` checks - Explicitly disable a few `ruff` checks **NB** Tests fail but not because of changes introduced here, they were already failing, see #200
ns-rse
force-pushed
the
ns-rse/201-pyproject-dependency-group
branch
from
October 16, 2026 13:22
d79d783 to
39f54bd
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #201
package.optional-dependenciestodependency-groupsuv.lockfile should people wish to useuvto manage virtual environments whilst working on this package.pytest-xdistto test packages.pre-commithooks.ruff>ruff-checkruff-formatvalidate-pyprojectuv-lock