Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

config: Removes target-version from ruff configuration #1013

Merged
merged 2 commits into from
Nov 19, 2024

Conversation

ns-rse
Copy link
Collaborator

@ns-rse ns-rse commented Nov 19, 2024

Closes #1007

As per RF002: Target version must be set
We had both Ruff's target-version and project.requires-python. We only need the latter.

NB This is a stacked pull request and should be merged after #1012


Before submitting a Pull Request please check the following.

  • Existing tests pass.
  • Documentation has been updated and builds. Remember to update configuration.md, usage.md, and relevant processing sections under advanced.md.
  • Pre-commit checks pass.
  • New functions/methods have typehints and docstrings.
  • New functions/methods have tests which check the intended behaviour is correct.

Optional

topostats/default_config.yaml

N/A

Closes #1007

As per [RF002](https://learn.scientific-python.org/development/guides/style#RF002): Target version must be set
We had both Ruff's `target-version` and `project.requires-python`. We only need the latter.

**NB** This is a stacked pull request and should be merged after #1012
@ns-rse ns-rse added the v2.3.0 label Nov 19, 2024
ns-rse added a commit that referenced this pull request Nov 19, 2024
Closes #1005

As per [PC170](https://learn.scientific-python.org/development/guides/style#PC170): Uses PyGrep hooks (only needed if
rST present) adds [pygrep-hooks](https://github.com/pre-commit/pygrep-hooks) to `.pre-commit-config.yaml`.

Opted to enable more than just the `rst-` hooks.

**NB** This is a stacked commit and should be merged after #1013 from which it was branched.
@ns-rse ns-rse merged commit 25d5f3a into main Nov 19, 2024
9 of 11 checks passed
@ns-rse ns-rse deleted the ns-rse/1007-target-version branch November 19, 2024 17:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
1 participant