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

Testing Maintenance tasks #244

Merged
merged 12 commits into from
Jan 11, 2024
Merged

Conversation

jamesobutler
Copy link
Contributor

@jamesobutler jamesobutler commented Dec 10, 2023

This PR is to add some maintenance tasks. Currently under testing. Will convert to draft once ready.

Along with the introduction in CI: Add Dependabot workflow to update GitHub actions, the admin should go to https://github.com/wasserth/TotalSegmentator/settings/security_analysis and enable "Dependabot alerts", "Dependabot security updates" and "Dependabot version updates". Once the workflow is added, it should automatically run dependabot for the first time and update outdated actions such as actions/checkout which is now at v4:

- uses: actions/checkout@v2

The following commits include GitHub actions to find spelling mistakes along with the commits that include the auto-fixes.

Ultimately the GitHub actions here aim to point out various issues in an automated way to keep the repository well maintained.

jamesobutler#1 is the PR in my fork that showcases the workflows running successfully. At this moment this PR requires the maintainer @wasserth to approve the new workflows.

Following the integration of this PR a .git-blame-ignore-revs can be committed to this repo specifying the integrated commit hashes of bulk change commits like STYLE: Trim trailing whitespace so that it does not come up when git blaming to track down when a certain line was last edited.

@jamesobutler jamesobutler marked this pull request as draft December 10, 2023 21:07
Changes automatically applied by using codespell through a pre-commit configuration:

python -m pre_commit run --all-files
These were identified by codespell, but were unable to be auto fixed due to the inability to determine a fix with high confidence.
This aims to reduce the number of diff changes included in commits that can obscure the important code change.
TotalSegmentator was officially marked as requiring Python 3.9+ in wasserth@5defa48.

Changes automatically applied using:

python -m pre_commit run --all-files
@jamesobutler jamesobutler marked this pull request as ready for review December 10, 2023 21:52
@jamesobutler
Copy link
Contributor Author

@wasserth This PR is ready for your review.

@wasserth wasserth merged commit 4cb664c into wasserth:master Jan 11, 2024
1 of 2 checks passed
@wasserth
Copy link
Owner

wasserth commented Jan 11, 2024

I have a question:

Linting and spell checking is now part of github/workflows and also part of pre-commit hooks. Is this redundant?

@jamesobutler
Copy link
Contributor Author

Indeed. You could remove one of them. You could keep the separate workflow one if you want to have codespell have its own independent status check to merge a PR compared to other linting checks.

@jamesobutler jamesobutler deleted the maintenance-tasks branch January 11, 2024 14:49
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.

2 participants