Skip to content

Conversation

@Sparks29032
Copy link
Collaborator

@Sparks29032 Sparks29032 commented May 31, 2024

Good to merge. Pre-commit CI is set up for this repo.

This removes the pre-commit.yml file as pre-commit.ci should automatically run for every pull request after installation.

autoupdate_branch: 'pre-commit-autoupdate'
autoupdate_commit_msg: '[pre-commit.ci] pre-commit autoupdate'
autoupdate_schedule: monthly
skip: [no-commit-to-branch]
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This skips the ci from running this hook, but it still runs locally.

autofix_prs: true
autoupdate_branch: 'pre-commit-autoupdate'
autoupdate_commit_msg: '[pre-commit.ci] pre-commit autoupdate'
autoupdate_schedule: monthly
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shortest time is weekly, but monthly seemed fine. Can also extend to quarterly.

autofix_commit_msg: |
[pre-commit.ci] auto fixes from pre-commit hooks
autofix_prs: true
autoupdate_branch: 'pre-commit-autoupdate'
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updates on a branch named pre-commit-autoupdate so it does not change our main branch.

@sbillinge
Copy link
Contributor

I linked diffpy org at pre-commit.ci. I wasn't quite sure what else I needed to do?

@Sparks29032
Copy link
Collaborator Author

pre-commit.ci run

@Sparks29032
Copy link
Collaborator Author

From now on each new PR should automatically run this pre-commit once merged. Failures should be fixed with Caden's PR.

@Sparks29032
Copy link
Collaborator Author

Sparks29032 commented May 31, 2024

I linked diffpy org at pre-commit.ci. I wasn't quite sure what else I needed to do?

Everything should be set up and good to go. We can test this after merging this PR and putting in a new PR to see if it runs this CI automatically. I tested it on my fork and it runs automatically.

@sbillinge sbillinge merged commit 8c69f4f into diffpy:main Jun 1, 2024
@sbillinge
Copy link
Contributor

super, thanks @Sparks29032

@sbillinge
Copy link
Contributor

@Sparks29032 @cadenmyers13 I tested this locally and it seemed to work (no commit to main after updating merged main).

So @cadenmyers13 I think we need to migrate these changes also to diffpy.utils and diffpy.labpdfproc.

Thanks so much @Sparks29032 for this!

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