-
Notifications
You must be signed in to change notification settings - Fork 16
Create a configuration checklist with references. #428
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
Changes from all commits
Commits
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 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,67 @@ | ||
| Configuring a new project | ||
| =============================================================================== | ||
|
|
||
| So you've created a new python project from the template! Great! | ||
|
|
||
| Now let's get other services linked up to your new project to make the most of | ||
| what the template and open source CI has to offer! | ||
|
|
||
| Configure your GitHub repository for safety and security | ||
| ------------------------------------------------------------------------------- | ||
|
|
||
| * Consider setting up branch protection rules. | ||
|
|
||
| * `GitHub Instructions for protected branches <https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/managing-protected-branches/about-protected-branches#require-pull-request-reviews-before-merging>`_ | ||
| * This will help ensure your code is always ready to deploy by running all tests | ||
| pass to merging into the ``main`` branch. | ||
|
delucchi-cmu marked this conversation as resolved.
|
||
|
|
||
| * Enable ``dependabot`` for your new repository | ||
|
|
||
| * `GitHub Instructions for dependabot <https://docs.github.com/en/code-security/getting-started/securing-your-repository#managing-dependabot-security-updates>`_ | ||
| * There are several different features that ``dependabot`` offers to keep your dependencies | ||
| up to date and your code secure. It's as easy as clicking a checkbox to get started. | ||
|
|
||
| * Add another GitHub user as an administrator on your repository | ||
|
|
||
| * `GitHub Instructions for repo access <https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/managing-repository-settings/managing-teams-and-people-with-access-to-your-repository>`_ | ||
| * It's just a good idea - like having a spare set of keys for your Lamborghini. | ||
|
|
||
| Configure your GitHub repository for convenience | ||
| ------------------------------------------------------------------------------- | ||
|
|
||
| There are several convenient options in GitHub that are not enabled by default. | ||
| We find ourselves setting these options on all our development repositories, and | ||
| list them here for reference. | ||
|
|
||
| In your repo, "Settings" tab, "General" page, scroll down to the "Pull Requests" | ||
| section: | ||
|
|
||
| * Check **"Allow squash merging"**. This lets you combine several intermediate | ||
| commits on a development branch into a single merge into main. The merge | ||
| history will stay cleaner. | ||
| * Check **"Allow auto-merge"**. This lets you set a pull request to automatically | ||
| merge when all required reviews and status criteria is met. This can be | ||
| great when working with folks in other time zones - you don't need to be | ||
| around to merge your change once it's ready. | ||
| * Check **"Automatically delete head branches"**. If you're working in development | ||
| branches and only merging in to main with pull requests (which you should do!), | ||
| your repo may quickly fill up with stale development branches. With | ||
| this feature enabled, your development branches will be automatically deleted | ||
| once the pull requests are merged into main. | ||
|
|
||
|
|
||
| Get the most out of this template | ||
| ------------------------------------------------------------------------------- | ||
|
|
||
| - :ref:`Finish setting up benchmarks <practices/ci_benchmarking:Set-up>` | ||
| - :ref:`Set up smoke test email notifications <practices/ci_testing:Email notifications>` | ||
| - :ref:`Set up smoke test slack notifications <practices/ci_testing:Slack notifications>` | ||
| - :ref:`Set up code coverage with codecov <practices/code_coverage:How to manage>` | ||
| - :ref:`Set up a PyPI package <practices/pypi:Set-up>` | ||
| - :ref:`Set up a conda-forge package <practices/conda:Set-up>` | ||
| - :ref:`Connect your project to ReadTheDocs <practices/sphinx:How to get started with ReadTheDocs>` | ||
|
|
||
| Still have questions? | ||
| ------------------------------------------------------------------------------- | ||
|
|
||
| :doc:`/source/contact` | ||
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
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.