You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+7-6
Original file line number
Diff line number
Diff line change
@@ -21,29 +21,30 @@ A basic template for building Python packages.
21
21
2.**Clone this repository** and give it the name of your repository: `git clone [email protected]:tomsilver/python-starter.git <NAME>`. You should now have a directory called NAME. **Enter** that directory: `cd <NAME>`.
22
22
3.**Configure the repository:** Make changes to `config.json` and then save.
23
23
4.**Apply the configuration**: Run `python apply_configuration.py`.
24
+
5.**Push your changes**: For example, run `git add . && git commit -m "First commit" && git push -u origin main`.
24
25
25
26
:tada:**That's it! Your code is ready to use**:tada: You should see your code back on GitHub where you previously had an empty repository.
26
27
27
28
### Common Next Steps
28
-
5.**Make changes** to `pyproject.toml`, especially in the dependencies section.
29
-
6.**Install your repository**: `pip install -e .` (recommended: use a virtualenv).
30
-
7.**Replace the starter files** (`README.md`, `LICENSE`, `config.json`, `apply_configuration.py`, `structs.py`, `utils.py` and the analogous files in `tests/`) with some of your own.
29
+
6.**Make changes** to `pyproject.toml`, especially in the dependencies section.
30
+
7.**Install your repository**: `pip install -e .` (recommended: use a virtualenv).
31
+
8.**Replace the starter files** (`README.md`, `LICENSE`, `config.json`, `apply_configuration.py`, `structs.py`, `utils.py` and the analogous files in `tests/`) with some of your own.
31
32
32
33
### Configure GitHub (Optional but Recommended)
33
-
8.**Set up branch protections** to prevent accidental changes to your main branch. In `https://github.com/<USER>/<NAME>/settings/branches`:
34
+
9.**Set up branch protections** to prevent accidental changes to your main branch. In `https://github.com/<USER>/<NAME>/settings/branches`:
34
35
- Click `Add classic branch protection rule`.
35
36
- The branch pattern name is `main`.
36
37
- Check "Require a pull request before merging (optionally: uncheck "Require approvals").
37
38
- Check "Require status checks to pass before merging".
38
39
- Check "Require branches to be up to date before merging".
39
40
- Then type in `autoformat`, `static-type-checking`, `linting`, `unit-tests`.
40
41
- Check "Do not allow bypassing the above settings".
41
-
9.**Set up repository settings** in `https://github.com/<USER>/<NAME>/settings`:
42
+
10.**Set up repository settings** in `https://github.com/<USER>/<NAME>/settings`:
42
43
- Check "Allow auto-merge".
43
44
- Check "Automatically delete head branches".
44
45
- Uncheck "Allow merge commits".
45
46
- Uncheck "Allow rebase merging".
46
-
10.**Set up contributor settings** to lower the barrier for external contributions. In `https://github.com/<USER>/<NAME>/settings/actions`:
47
+
11.**Set up contributor settings** to lower the barrier for external contributions. In `https://github.com/<USER>/<NAME>/settings/actions`:
47
48
- Update "Fork pull request workflows from outside collaborators" to "Require approval for first-time contributors who are new to GitHub".
0 commit comments