-
Notifications
You must be signed in to change notification settings - Fork 9
feat!: Add renovate #311
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
Merged
Merged
feat!: Add renovate #311
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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
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
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
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
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,39 @@ | ||
| # Use renovate to keep dependencies up to date | ||
|
|
||
| [Renovate](https://github.com/apps/renovate) is a tool for automating dependency updates. It is used to: | ||
| - Automatically update the [uv lock file](./lock-requirements.md) and automerge if tests pass | ||
| - Update any dependencies in the Dockerfile | ||
| - Update the versions of any GitHub actions not manager by the python-copier-template | ||
|
|
||
| ## Install the Renovate GitHub app | ||
|
|
||
| The renovate app will: | ||
| - Create weekly PRs to update the lockfile to the latest versions, automerging if tests pass | ||
| - Create PRs for other dependencies whenever they are released, but not automerge | ||
|
|
||
| If your repo is hosted in the DiamondLightSource org, then the Renovate GitHub app is already installed so you don't need to do anything. | ||
|
|
||
| If your repo is in an org where the Renovate GitHub app is not installed, then follow these steps to install it on the org: | ||
|
|
||
| - Visit https://github.com/apps/renovate | ||
| - Click `Configure` | ||
| - Select the org your repo is hosted in | ||
| - Select `All repositories` and click `Install` | ||
| - Select `Renovate Only` as the product | ||
| - Select `Scan only` as the mode | ||
| - Click `Finish` | ||
| - Click `Settings` | ||
| - Select the `Dependencies` tab | ||
| - Uncheck `Silent mode`, uncheck `Create onboarding PRs`, and click `Save` | ||
| - Visit https://github.com/apps/renovate-approve | ||
| - Click `Configure` | ||
| - Select the org your repo is hosted in | ||
| - Select `All repositories` and click `Install` | ||
|
|
||
|  | ||
|
|
||
| Renovate will now run periodically to check for updates. | ||
|
|
||
| ## Pin the dependency dashboard issue | ||
|
|
||
| Renovate will create a dependency dashboard when it first runs, this is the way you interact with the bot, requesting it to re-run. It is recommended that you pin this issue to your repo so you can find it easily. Select `Pin issue` in the right hand bar of the issue to do this. | ||
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,35 @@ | ||
| # Setup the repository with recommended settings | ||
coretl marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| When the repository has been created, it will require some settings to be changed for all the features of the python-copier-template to work. These are listed below. | ||
|
|
||
| ## Discussions | ||
|
|
||
| The contributing guide for the template recommends that new users start a discussion for questions. You can enable this feature by navigating to your repository page and: | ||
|
|
||
| - Visiting `Settings` > `General` | ||
| - Scrolling down to `Features` | ||
| - Enabling it as shown | ||
|
|
||
|  | ||
|
|
||
| ## Branch protection | ||
|
|
||
| GitHub will prompt you that your `main` branch is not protected. It is recommended that a [branch protection rule](https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/managing-protected-branches/managing-a-branch-protection-rule) is setup for `main` to require pull requests. | ||
|
|
||
| If the repository is in the `DiamondLightSource` org, then follow [the dev guide](https://dev-guide.diamond.ac.uk/version-control/how-tos/github-setup-prs/) to see the recommended settings. | ||
|
|
||
| ## Code Coverage | ||
|
|
||
| To ensure that code coverage is correctly uploaded to codecov.io follow [](#installing-codecov-github-app) | ||
|
|
||
| ## Renovate | ||
|
|
||
| To ensure that your dependencies are kept up to date follow [](./renovate.md) | ||
|
|
||
| ## GitHub pages | ||
|
|
||
| If you configured the project to have sphinx docs then follow [](#building-docs-in-ci) | ||
|
|
||
| ## PyPI uploading | ||
|
|
||
| If you configured the project to upload built wheels to PyPI then follow [](./pypi.md) | ||
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,34 @@ | ||
| { | ||
| "$schema": "https://docs.renovatebot.com/renovate-schema.json", | ||
| "extends": [ | ||
| "config:recommended" | ||
| ], | ||
| "lockFileMaintenance": { | ||
| "description": "Keep uv.lock up to date, merging if tests pass", | ||
| "enabled": true, | ||
| "automerge": true | ||
| }, | ||
| "pre-commit": { | ||
| "enabled": true | ||
| }, | ||
| "packageRules": [ | ||
| { | ||
| "description": "Disable python version as that is managed by python-copier-template", | ||
| "matchManagers": [ | ||
| "pyenv" | ||
| ], | ||
| "enabled": false | ||
| }, | ||
| { | ||
| "description": "Group non-major github action updates", | ||
| "groupName": "GitHub Actions", | ||
| "matchUpdateTypes": [ | ||
| "patch", | ||
| "minor" | ||
| ], | ||
| "matchManagers": [ | ||
| "github-actions" | ||
| ] | ||
| } | ||
| ] | ||
| } |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,41 @@ | ||
| { | ||
| "$schema": "https://docs.renovatebot.com/renovate-schema.json", | ||
| "extends": [ | ||
| "config:recommended" | ||
| ], | ||
| "lockFileMaintenance": { | ||
| "description": "Keep uv.lock up to date, merging if tests pass", | ||
| "enabled": true, | ||
| "automerge": true | ||
| }, | ||
| "packageRules": [ | ||
| { | ||
| "description": "Disable python version as that is managed by python-copier-template", | ||
| "matchManagers": [ | ||
| "pyenv" | ||
| ], | ||
| "enabled": false | ||
| }, | ||
| { | ||
| "description": "Disable github actions that are managed by python-copier-template", | ||
| "matchPackageNames": [ | ||
| "actions/checkout", | ||
| "astral-sh/setup-uv", | ||
| "actions/upload-artifact", | ||
| "actions/download-artifact", | ||
| "softprops/action-gh-release", | ||
| "codecov/codecov-action"{% if docker %}, | ||
| "docker/setup-buildx-action", | ||
| "docker/login-action", | ||
| "docker/build-push-action", | ||
| "docker/metadata-action"{% endif %}{% if pypi %}, | ||
| "pypa/gh-action-pypi-publish"{% endif %}{% if sphinx %}, | ||
| "peaceiris/actions-gh-pages"{% endif %} | ||
| ], | ||
| "matchManagers": [ | ||
| "github-actions" | ||
| ], | ||
| "enabled": false | ||
| } | ||
| ] | ||
| } |
1 change: 0 additions & 1 deletion
1
template/{% if git_platform=="github.com" %}.github{% endif %}/dependabot.yml
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.