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

TST: update ruff and codespell versions #165

Merged
merged 2 commits into from
Dec 16, 2024
Merged

TST: update ruff and codespell versions #165

merged 2 commits into from
Dec 16, 2024

Conversation

hagenw
Copy link
Member

@hagenw hagenw commented Dec 16, 2024

Update ruff and codespell pre-commits to the versions we now use in other packages.

Summary by Sourcery

Add a utility function for managing environment variables and update pre-commit hooks to newer versions of ruff and codespell.

New Features:

  • Add a utility function to set or delete environment variables.

Build:

  • Update pre-commit configuration to use ruff version 0.7.0 and codespell version 2.3.0.

Copy link

sourcery-ai bot commented Dec 16, 2024

Reviewer's Guide by Sourcery

This PR updates the pre-commit configuration and adds a new utility function for environment variable management. The changes include upgrading ruff and codespell versions in the pre-commit configuration, and introducing a new helper function to handle environment variables.

No diagrams generated as the changes look simple and do not need a visual representation.

File-Level Changes

Change Details Files
Update pre-commit tool versions
  • Upgrade ruff-pre-commit from v0.1.8 to v0.7.0
  • Upgrade codespell from v2.2.4 to v2.3.0
.pre-commit-config.yaml
Add new utility function for environment variable management
  • Implement set_or_delete_env_variable function to handle setting or removing environment variables
  • Add docstring with parameter descriptions
audeer/core/utils.py

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time. You can also use
    this command to specify where the summary should be inserted.

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

@hagenw hagenw changed the title Update pre commit TST: update ruff and codespell versions Dec 16, 2024
@hagenw hagenw merged commit 4592c91 into main Dec 16, 2024
20 checks passed
@hagenw hagenw deleted the update-pre-commit branch December 16, 2024 15:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant